in reply to Getting table dimensions
or if you want to use the index:@array = qw( 1 2 3 4 5 6); for $array_element ( @array ){ print "This is the element: $array_element\n"; }
Is this what you are looking for?@array = qw( a b c d e f); for $i ( 0 .. $#array ){ print "This is the $i th element: ". $array[$i] ."\n"; }
|
---|