Sorting in Perl

Perl's sort function works a little differently than the standard built-

in functions. Like map() and grep(), it can accept a block as a first

argument, but it can also accept a named subroutine, or a reference to

a subroutine, allowing you to specify the comparison method used in

sorting. Perl sorts alphabetically (ascii-betical) by default, using


ITWorld DealPost: The best in tech deals and discounts.
Shop Tech Products at Amazon