If you don't want to pull the whole file into memory, you have a several alternatives. Here are two:
If you have enough memory to deal with the {key, offset} pairs, I'd go that way. It's easier to code. The descriptions of tell() and seek() in perlfunc tell you what you need.
In reply to Re: Sorting A File Of Large Records
by dws
in thread Sorting A File Of Large Records
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |