Take a look at Tie::File, this allows you to treat the file as an array without loading the entire file into memory.
In reply to Re: Reducing memory usage while matching log entries
by tirwhan
in thread Reducing memory usage while matching log entries
by matt.tovey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |