in reply to Re: How do I call a sub using a variable as its name, objectively
in thread How do I call a sub using a variable as its name, objectively
my $A = My::->new(); my $method = $method_list{$ARGV[0]} or die "Invalid method $ARGV[0]."; $A->$method(@ARGV[1..$#ARGV]);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How do I call a sub using a variable as its name, objectively
by GrandFather (Saint) on Oct 29, 2024 at 05:23 UTC |