in reply to Sorting in Perl
You've been around for a little while, I'm sure you know that you need to post what you've attempted.
This isn't a code writing service, but a service that educates people.
-stevieb