in reply to Re: Read Some lines in Tera byte file
in thread Read Some lines in Tera byte file
Thanks for reply
Here ..
for (1..100) { <$fh>; }
we are reading from 1st line to 100th lines, then
for (1..100) { my $line = <$fh>; ... }
we are saving required to a variable i.e from position 100th line 200th line
So unnecessary reading first 100 lines in the first code, is it possible directly read from 100th line?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Read Some lines in Tera byte file
by ikegami (Patriarch) on Oct 13, 2010 at 07:53 UTC | |
|
Re^3: Read Some lines in Tera byte file
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 | |
by ikegami (Patriarch) on Oct 13, 2010 at 08:27 UTC |