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


in reply to Re^3: Matching in huge files
in thread Matching in huge files

but why is that better than this: ...

My fragment doesn't assume that the huge file will fit in memory, and it matches across read boundaries. Your approach sets up for a single-read slurp.