Help for this page

Select Code to Download


  1. or download this
    my @AoA;
    for my $x (0..$#records) {
        $AoA[$x] = [ split ' ', $records[$x] ];
    }
    
  2. or download this
    my @AoA;
    for (@records) {
        push @AoA, [ split ];
    }
    
  3. or download this
    my @AoA = map { [ split ] } @records;