in reply to Re^10: Variable number of foreach loops
in thread Variable number of foreach loops
Had the question been phrased as:
I have a fixed number of arrays to permute, but I want to be able to pick a (sub)selection of those arrays at runtime using a string argument.
Then I might have come up with something like:
But then, if you'd taken the time to understand what you were trying to do, enough that you could express it clearly, you could probably have arrived at the solution yourself.
FWIW: The problem you are having has little or nothing to do with how to call a subroutine, and everything to do with how to use or avoid symbolic references. (Read all three parts!)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: Variable number of foreach loops
by abhay180 (Sexton) on Nov 29, 2013 at 11:48 UTC |