in reply to Re: Perl scripts slowing down towards end of file processing
in thread Perl scripts slowing down towards end of file processing
This would save you the byte by byte read and the string concatination for every record. Should be quite a bit faster.# tell perl to make the input record separator the character with hex +value '0c' $/ = pack('c',0x0c); while(<IN>) { my @temp = split(/\n/,$_); # rest of processing }
/\/\averick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Perl scripts slowing down towards end of file processing
by JPaul (Hermit) on Jul 14, 2001 at 01:40 UTC |