in reply to Chomp an AoA?
However since you only want to chomp one of themchomp @$_ for @array; # or chomp map @$_, @array;
But why add another loop if you can do it inline?chomp map $_->[2], @array;
while (<FILE>) { next if /^#/ or tr/\t// != 6; chomp; push @array, [ split "\t" ]; }
Makeshifts last the longest.
|
|---|