$pack->"${method}2"(); # <-- doesnt compile
Even Perl's syntax has its limits... :)
But you could do (if you really can't resist):
$pack->${\($method."2")};
In reply to Re^3: symbolic reference + inheritance
by almut
in thread symbolic reference + inheritance
by toddfreed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |