in reply to Re: Re: *Fastest* way to print a hash sorted by value
in thread *Fastest* way to print a hash sorted by value
You might try using external programs that are optimized to deal with such situations efficiently. I wish standard 'sort' knew how to include a count when doing 'sort -u' (like 'uniq -c' does). But it might be worth trying to have your Perl script just extract the IP addresses and output "10.0.0.10 192.168.0.10\n" via a pipe to "sort | uniq -c | sort +n | head -$N".
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: *Fastest* way to print a hash sorted by value (less Perl)
by zengargoyle (Deacon) on Aug 09, 2003 at 03:08 UTC |