I have code that uses a 'foreach(@array) {}' to loop through an array. I now need to be
able to get the array index inside of that. I know I could switch to a
'for($loopvar=0;$loopvar<@array;$loopvar++) {}' to do that, but I'd have to change some
other code also. If not that way, is there a way to get the array index inside of a loop
like 'for(0..$#array) {}'?
--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>