Yes, it can be done, but I wouldn't recommend it:
For instance:$obj->${\EXPR}(ARGS)
use strict; sub foo { "@_" } my ($x, $y) = qw/ f oo /; print __PACKAGE__->${\($x . $y)}('FOO'); __END__ main FOO
lodin
In reply to Re: method invocation syntax at perl
by lodin
in thread method invocation syntax at perl
by braveghost
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |