Help for this page

Select Code to Download


  1. or download this
    my @cols;
    for my $row (@array) {
    ...
        $f[2] = $b[$f[2]];
        push @{$cols[$_]}, $f[$_] for 0 .. $#f;
    }
    
  2. or download this
    my %col_for = (
        foo => 2,
    ...
        splice @f, $col_for{$f[1]} || 6, 0, shift @b;
        push @{$cols[$_]}, $f[$_] for 0 .. $#f;
    }