Anyway, after reblessing the object, wouldn't it be better to take the reference in numeric context than to extract the number from the string form?
True, although I've no idea off the top of my head whether that behaviour has always been in Perl so there may be issues with the perl versions that Scalar::Util supports.
In reply to Re^5: A Scalar::Util::refaddr Oddity
by adrianh
in thread A Scalar::Util::refaddr Oddity
by Zaxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |