abigail dixapqiabigailbe sub refaddr overloadmethod _0 0 rebless refaddr 0_0 rebless return refaddr else return 0_0 fail object overloaded stringification numification overload usrbinperl use strict use warnings warnings syntax use overload stringify sub refaddr overloadmethod _0 0 pkg ref _ 0 bless _ 0 scalarutilfake refaddr 0_0 bless _ 0 pkg return refaddr else return 0_0 sub stringify return 17 foo bless main print refaddr foo n __end__ operation method found left argument overloaded magic right argument overloaded package main tmpfoo line 19 also may overloading fallback may set may nomethod overloading abigail wed 06 aug 2008 042333 0200 scalarutilrefaddr