in reply to Re: Filling an array
in thread Filling an array
You can eliminate the $i var by doing the following:
Also, I would think you'd be better off using one of the other suggestions like for() or the x operator rather than map() for efficiency reasons.
for (0 .. $#array) { print "$_ $array[$_]\n" }
Also, I would think you'd be better off using one of the other suggestions like for() or the x operator rather than map() for efficiency reasons.
Zenon Zabinski | zdog | zdog7@hotmail.com
In Section
Seekers of Perl Wisdom