I don't understand why the pure-perl version uses that code versus the 0 + $object idiom.
Because that idiom fails if $object overloads addition to do something else.
In reply to Re^3: A Scalar::Util::refaddr Oddity
by adrianh
in thread A Scalar::Util::refaddr Oddity
by Zaxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |