in reply to Re: Working Around Missing Modules (KISS)
in thread Working Around Missing Modules
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Working Around Missing Modules (KISS)
by tye (Sage) on Dec 02, 2006 at 15:36 UTC | |
by chromatic (Archbishop) on Dec 02, 2006 at 19:57 UTC |