This little sub does just that: it gives you the standard stringification.
I wonder if it would make sense to add this to Scalar::Util as well.
use Scalar::Util qw(blessed reftype refaddr); sub stringify ($) {sprintf "%s=%s(0x%x)",blessed $_[0],reftype $_[0],r +efaddr $_[0]}
In reply to Stringify objects with overloaded stringification by liz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |