go ahead... be a heretic | |
PerlMonks |
Re: How can I access the index variable in map?by chromatic (Archbishop) |
on Nov 02, 2000 at 07:48 UTC ( [id://39595]=note: print w/replies, xml ) | Need Help?? |
To my knowledge, there's no index iterator in the map construct, presumably because it operates on lists (not just arrays).
Stick with a for loop of some kind.
In Section
Seekers of Perl Wisdom
|
|