in reply to Read Some lines in Tera byte file
Unless you happen to know the position at which the 100th line starts, you'll have to read from the start of the file. You can stop reading any time, though.
for (1..100) { <$fh>; } for (1..100) { my $line = <$fh>; ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Read Some lines in Tera byte file
by Anonymous Monk on Oct 13, 2010 at 06:50 UTC | |
by ikegami (Patriarch) on Oct 13, 2010 at 07:53 UTC | |
by Corion (Patriarch) on Oct 13, 2010 at 06:53 UTC | |
by Anonymous Monk on Oct 13, 2010 at 07:05 UTC | |
by Corion (Patriarch) on Oct 13, 2010 at 07:08 UTC | |
by Anonymous Monk on Oct 13, 2010 at 07:08 UTC | |
by ikegami (Patriarch) on Oct 13, 2010 at 08:07 UTC | |
by BrowserUk (Patriarch) on Oct 13, 2010 at 08:18 UTC | |
|
In Section
Seekers of Perl Wisdom