in reply to Re: Optimal way to read in pipe delimited files
in thread Optimal way to read in pipe delimited files
or, expanded,%prod=map{chomp;@a=split/\|/;shift@a,[@a]}<SRC>;
You have to do [@a] instead of \@a if you do not localize the array with "my".%prod = map { chomp; @a = split /\|/; shift(@a) => [@a] } <SRC>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Optimal way to read in pipe delimited files
by Roy Johnson (Monsignor) on Nov 09, 2005 at 22:29 UTC | |
|
Re^3: Optimal way to read in pipe delimited files
by narashima (Beadle) on Nov 09, 2005 at 22:34 UTC | |
by duff (Parson) on Nov 09, 2005 at 22:51 UTC |