in reply to Sorting a (very) large file
1) The one that will always work is to split up the file in smaller chunks, sort the separately, and then merge them again.
2) If you work on a unixish system, you could try to abuse you system's sort program, at least GNU sort handles memory limitations automatically by creating temporary files.
3) Search on CPAN. Maybe there's a module that does what you want? File::Sort looks promising at a first glance (actually CPAN should be your first place to look ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting a (very) large file
by salva (Canon) on Dec 01, 2007 at 09:21 UTC | |
by creamygoodness (Curate) on Dec 02, 2007 at 03:44 UTC | |
by salva (Canon) on Dec 02, 2007 at 13:57 UTC | |
by tye (Sage) on Dec 02, 2007 at 16:52 UTC |