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


in reply to Filling an array

++dragonchild
I was inspired by your map example to do something like this instead:
$value=" 1 "; @array=map {$_=$value} (1..100); $i=0; foreach (@array) { print "$i $_\n"; $i++; }
The $i variable (used as an incrementer) and the foreach merely proves the map statement.
-spartan

Very funny Scotty... Now PLEASE beam down my PANTS!