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; }
In reply to Re: Optimal way to read in pipe delimited files
by Fletch
in thread Optimal way to read in pipe delimited files
by narashima
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |