Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: What operator should perl5porters use for safe dereferencing?by ambrus (Abbot) |
on Apr 05, 2013 at 11:14 UTC ( [id://1027121]=note: print w/replies, xml ) | Need Help?? |
I guess you're right, the ampersand isn't so obvious. The problem is, reading the ampersand meaning address of could even make sense in perl. You could want an operator to create a bound method call, so eg. $object&->method creates a bound method like do { my $o = $object; sub { $o->method(@_); } }, and $object&&->method creates a bound method call weakly referencing the object.
In Section
Past Polls
|
|