in reply to Optimal way to read in pipe delimited files
Short of moving to an XS based parser, stop making redundant copies of your data ($Record, and @row into a fresh arrayref).
while( <SRC> ) { chomp; my( $key, @row ) = split( /\|/, $_ ); $prod{ $key } = \@row; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Optimal way to read in pipe delimited files
by bageler (Hermit) on Nov 09, 2005 at 19:49 UTC | |
by Roy Johnson (Monsignor) on Nov 09, 2005 at 22:29 UTC | |
by narashima (Beadle) on Nov 09, 2005 at 22:34 UTC | |
by duff (Parson) on Nov 09, 2005 at 22:51 UTC | |
|
Re^2: Optimal way to read in pipe delimited files
by narashima (Beadle) on Nov 09, 2005 at 19:46 UTC |