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