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


in reply to Re^2: what's this loo code? (*slurp*)
in thread what's this loo code?

If the last line doesn't end with a \n (that is, \n is not the last character in the last chunk) you'll be off by one.