in reply to Re^7: perl parsing
in thread perl parsing

I am guessing you made a typo, you meant push @{$hash{$name}},$col2,$col3 is creating 2 array element for each line of data and push @{$hash{$name}},"$col2\t$col3" creates only 1 array element for each line

right?

Replies are listed 'Best First'.
Re^9: perl parsing
by poj (Abbot) on Oct 07, 2017 at 14:19 UTC
    Both push @{$hash{$name}},"$col2,$col3" and push @{$hash{$name}},"$col2\t$col3" create only 1 array element for each line because of the double quotes enclosing the 2 variables. Using a comma or tab only changes the print output format.

    poj