|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re^5: Perlplexation - foreach shoulda Knownby Riales (Friar) |
| on Apr 13, 2012 at 22:04 UTC ( #965005=note: print w/ replies, xml ) | Need Help?? |
|
Right...I think. If I need to use the value of $_ in a nested loop, I'd just assign it to another variable:
So I guess the loop counter would just keep a count of the most immediate loop it's in. I don't really know--this is all just how I would expect such a variable to work (if it existed). So if we pretend $. is the loop counter:
I should emphasize: I'm not pushing for this to become a feature or anything. I was just curious if there was anything like this (and this is how I would imagine it might work if there was).
In Section
Meditations
|
|
||||||||||||||||||||||