A
Alison Bowes
I posted this on comp.lang.perl then ran across another post saying that
that newsgroup is "defunct" and posts should be made here instead. Sorry if
you're seeing this twice!
I know that if $subname contains the name of the subroutine I want to call,
I can call that subroutine via
&$subname;
However, my subroutine names are in an array, so if I want to call
$subname[3] I've tried
&$subname[3];
But, that doesn't work, and I'm not having much luck finding such an
example. If I'm doing something truly numbskulled, I do apologize!
I do realize I could go this route:
$this_sub = $subname[3];
&$this_sub;
But, that just seems so clunky and unnecessary, no?
TIA,
Alison
that newsgroup is "defunct" and posts should be made here instead. Sorry if
you're seeing this twice!
I know that if $subname contains the name of the subroutine I want to call,
I can call that subroutine via
&$subname;
However, my subroutine names are in an array, so if I want to call
$subname[3] I've tried
&$subname[3];
But, that doesn't work, and I'm not having much luck finding such an
example. If I'm doing something truly numbskulled, I do apologize!
I do realize I could go this route:
$this_sub = $subname[3];
&$this_sub;
But, that just seems so clunky and unnecessary, no?
TIA,
Alison