in reply to Filling an array
++dragonchild
I was inspired by your map example to do something like this instead:
-spartan
Very funny Scotty... Now PLEASE beam down my PANTS!
I was inspired by your map example to do something like this instead:
The $i variable (used as an incrementer) and the foreach merely proves the map statement.$value=" 1 "; @array=map {$_=$value} (1..100); $i=0; foreach (@array) { print "$i $_\n"; $i++; }
-spartan
Very funny Scotty... Now PLEASE beam down my PANTS!
In Section
Seekers of Perl Wisdom