Help for this page

Select Code to Download


  1. or download this
    foreach my $row ( @array ) {
        $hash{ $row->[ 6 ] } = $row->[ 7 ];
    }
    
  2. or download this
    foreach my $i ( 0 .. $#array ) {
        $hash{ $array[ $i ][ 6 ] } = $array[ $i ][ 7 ];
    }
    
  3. or download this
    my %hash = map { $row->[ 6 ] => $row->[ 7 ] } @array;