my $method = $subs[0]; $foo->$method;
Or, if you're in the mood for obfuscation:
$foo->${ \$subs[0] };
In reply to Re^3: calling functions using array variables
by friedo
in thread calling methods using array variables
by rsennat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |