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


in reply to Going through a big file [solved]

And, just for the purpose of being annoying, you can try also something in between, to read your huge file in chunks of n characters or n lines. See "perldoc -f read", and "perldoc -v $."