Help for this page

Select Code to Download


  1. or download this
    sub alpha_num_cmp 
    {
    ...
          }
     return ($a <=> $b); #otherwise straight numeric comparison
    }
    
  2. or download this
    #!usr/bin/perl -w
    use strict;
    ...
    1 2 2 3 4 4 5 5 8 10 20 88
    an any sort
    1 2 2 3 4 4 5 5 8 10 20 88