We don't bite newbies here... much | |
PerlMonks |
Re: using an array in a while loopby choroba (Cardinal) |
on Jan 31, 2022 at 09:47 UTC ( [id://11140990]=note: print w/replies, xml ) | Need Help?? |
Normally, you shouldn't need the number at all:
To populate the array with the names, you can use a map:
If you really need the array index, loop over the indices rather than the elements themselves:
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|