Mega Code Archive

 
Categories / Perl / Array
 

Print each value in the array

foreach $Index (0..9) {         print "The cube of ", $Index + 1, " is $Array[$Index]\n";     }