http://qs321.pair.com?node_id=110804


in reply to Re: Filling an array
in thread Filling an array

You can eliminate the $i var by doing the following:

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