Oct 29, 2002, 9:31 PM
Post #1 of 2
How can I determine the current index (loop-counter) when using foreach-loop ?
determine the current index in foreach-loop
foreach $word (@letter)
Now, I want to print the word number in the letter.
Can I do it without using another variable for counting ?
(Is There a internal-variable that contain the current index in the loop? )