in reply to Agile syntax (abuse?)

I see that overload can overload dereferencing, but only for the ${} @{} %{} &{} *{} forms, and not for the arrow operator.
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<c>, <c>@{$o}[42], etc are all affected.

Further, if you wish to call a method with no name, you'd do it thusly: $method = ''; $o->$method(...).

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Replies are listed 'Best First'.
Re^2: Agile syntax (abuse?)
by blazar (Canon) on Apr 03, 2007 at 17:39 UTC
    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.