pkirsch has asked for the wisdom of the Perl Monks concerning the following question:
BEGIN { use overload; overload::Method "*{}" => sub { print "Overloaded\n"; }; } sub test () { print "Not Overloaded\n"; }; test();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Overloading '{}' or 'sub'
by Corion (Patriarch) on Jan 01, 2009 at 19:26 UTC | |
|
Re: Overloading '{}' or 'sub'
by jasonk (Parson) on Jan 01, 2009 at 20:06 UTC | |
by wdef2 (Acolyte) on Jan 01, 2009 at 22:52 UTC |