That can fail with overloaded objects, thus forcing one back to reimplementing refaddr
#!/usr/bin/perl use strict; use warnings; { package Foo; use overload '+' => sub { 'oops' }; sub new { bless {}, shift } } my $foo = Foo->new; print 0+$foo;
Cheers,
Ovid
New address of my CGI Course.
In reply to Re^2: Working Around Missing Modules (KISS)
by Ovid
in thread Working Around Missing Modules
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |