in reply to Re: Agile syntax (abuse?)
in thread Agile syntax (abuse?)
You have made a bad assumption. overload hooks the entire dereferencing method regardless of the mere syntax you use. If you have overloaded array dereferencing then all of $o->[42], @$o, @{$o}[42], etc are all affected.
May I dare to say D'Oh?!?
Further, if you wish to call a method with no name, you'd do it thusly: $method = ''; $o->$method(...).
Well, that I knew, but of course it's a whole another story.
|
|---|