On Tue, Mar 5, 2013 at 12:41 PM, Chris Stinemetz
<[email protected]> wrote:
> Hello List,
>
> I am working on a script to parse large files, by large I mean 4 million
> line+ in length and when splitting on the delimiter ( ; ) there are close
> to 300 fields per record, but I am only interested in the first 44.

Consider pre-processing your input with the 'cut' shell utility, something like:

    cut -f1-45 -d';' $FILE

That'll cut down on the amount of data you're shoving through Perl.

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to