And again, you'll get roughly the same answers. If you aren't using the built-in sort, you should be. And if you were told you can't, you don't need our help: you need the help of the person placing artificial restrictions on your Perl code, because you aren't coding in Perl any more. This site is about best-practices Perl code (and the culture surrounding it), not about capricious instructor mandates.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.