[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Finding array index



Greetings:

Is there a shortcut for finding the current array index when using the
"foreach" loop?  Or, must you use "for ($i = 0, $i <= $#array, i++)"?  I
know $#array stores the last index.

Thanks.

--
Mark Yannuzzi
myannuzzi@aya.yale.edu


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch