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


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?