in reply to How does the while works in case of Filehandle when reading a gigantic file in Perl

Depends, have a look at seek and tell

Or maybe you want to read in larger chunks...

?

Cheers Rolf

PS: Je suis Charlie!

PS:

> Does while has to parse through all the lines it has already read to go to the next unread line or something like that?

Not if you open the file just once!

  • Comment on Re: How does the while works in case of Filehandle when reading a gigantic file in Perl