Mega Code Archive

 
Categories / Perl / Statement
 

Looping through an array with the for repetition structure

@array = ( "Hello", 283, "there", 16.439 ); for ( $i = 0; $i < 4; ++$i ) {    print "$i   $array[ $i ]\n"; }