Mega Code Archive
Categories
/
Perl
/
Array
Loop through a list
foreach $Index (1..10) { $i = $Index - 1; $Array[$i] = $Index ** 3; }