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