Use strings instead of arrays.
Tie::File uses tied arrays, and (as far as I know) they are implemented in a way that not all of their elements are held in memory at the same time.
In reply to Re^2: Question regarding Tie::File or a better way to handle huge 2-D arrays
by betterworld
in thread Question regarding Tie::File or a better way to handle huge 2-D arrays
by Benbo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |