my $A = My::->new(); my $method = $method_list{$ARGV[0]} or die "Invalid method $ARGV[0]."; $A->$method(@ARGV[1..$#ARGV]);
In reply to Re^2: How do I call a sub using a variable as its name, objectively
by ysth
in thread How do I call a sub using a variable as its name, objectively
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |