in reply to Rewrite Program Using Arrays
So I want to make this faster.Then don't sort. Really. The rest of your program is essentially linear. Sorting is N log N. That's the bottleneck of your program. Any speedup you'll do in the rest of the program are pointless if your data size increases: the sort will dominate.
In Section
Seekers of Perl Wisdom