http://qs1969.pair.com?node_id=584607


in reply to Sorting files you Have read

That's a bit like asking "How should I drink?". It depends a great deal on what it is you are drinking!

First up:

  1. What does your data look like?
  2. How big is the file?
  3. How often does it need to be done?
  4. Is sort time important?
  5. Will the sorted data be reused in some fashion?

Actually, many of those are related to each other.

Because you were good and supplied some code, I'll show you some:

my @contents = sort <SOMELIST>; print @contents;

and because I'm kind I'll give you some hints:


DWIM is Perl's answer to Gödel