in reply to Re: Sort a 2D array based on 2 columns
in thread Sort a 2D array based on 2 columns

Note that the loop
    foreach my $ele (@data) {chomp $ele}
is the same as the statement
    chomp(@data);

Replies are listed 'Best First'.
Re^3: Sort a 2D array based on 2 columns
by perliff (Monk) on Apr 26, 2009 at 17:16 UTC
    thanks for the tip! saves me a lot of typing. I changed the code.

    perliff

    ----------------------

    "with perl on my side"