in reply to Re: Count file lines in a directory tree
in thread Count file lines in a directory tree

{ local $/ = \131072; $lines += tr/\n// while <inFile>; $lines++ if not /\n\z/; }

Makeshifts last the longest.