in reply to (RhetTbull) Re: Looking for a better way to get the number of lines in a file...
in thread Looking for a better way to get the number of lines in a file...
local $/=\102400; while(<FILE>) { $count += tr/\n// }
This example reads in chunks of 100K.
|
|---|