http://www.perlmonks.org?node_id=545971


in reply to Handling large files

I have PerlIO::via::Skip on cpan that reads lines with PerlIO. It can read the lines after it finds the pattern, between patterns, can skips comments, or skip a number of lines after it finds the pattern, etc,. For the case of reading after line 1000, you will probably need to pattern-match the first line and request your lines with the 'after=>1000' parameter.