Help for this page
perldoc -f split
open ALL, "alltrans.csv" or die "Can not open file: $!"; while (<ALL>) { ... push @alltrans, [ split /,/, $_, -1 ]; } close ALL;
my @alltrans; chomp, push @alltrans, [ split /,/, $_, -1 ] for <ALL>; ... # or my @alltrans = map { chomp; [ split /,/, $_, -1 ] } <DATA>;