Really simple question.

Robert Bannocks londonperlmongers at
Thu Feb 8 15:35:42 GMT 2007

is there an internal perl variable is $<somethins> that will tell you 
index of an array you are at in a foreach loop

i.e. in

foreach (@arrayname)
{ some stuff..

other than setting a count before the loop and incrementing it each time 
how can I find out with in some stuff...
how far through @arrayname I am?


More information about the mailing list