In order to print the number of lines in the file, Tie::File has to read the whole file. To do this, it has to page it through it's buffer, which by default is only 2MB. Hence, it does a lot of memory shuffling which causes the symptoms you are seeing.
Try increasing the buffer size using the memory option. See the docs for details.
In reply to Re: file size limit with Tie::File
by BrowserUk
in thread file size limit with Tie::File
by alw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |