There's more than one way to do things | |
PerlMonks |
Re^3: method dispatch questionby moritz (Cardinal) |
on Jul 09, 2008 at 12:20 UTC ( [id://696439]=note: print w/replies, xml ) | Need Help?? |
Even if there is a solution for that (and I don't doubt there is one, perl is full of surprising syntax ;-), you shouldn't go for it, because it's not really readable anymore.
Use a temporary variable instead. $self->($self->get_mref(...))() won't work because $something->(...) treats $something as a sub ref. If there's a way, I suspect it involves ${...}.
In Section
Seekers of Perl Wisdom
|
|