For more information, try Super Search or Google. You may find How to use a scaler variable to call a subroutine to be of interest as well.$count = shift; my $routine; for($runs = 1; $runs <= $count; $runs++){ $routine = "func_$runs"; &{$routine}; }
In reply to Re: Expanding Variable Names in Calls to Subroutines
by LD2
in thread Expanding Variable Names in Calls to Subroutines
by sicrj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |