Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print "Sorted table...\n\n";
    print sort { (split ":", $a)[0] <=> (split ":", $b)[0] } @table;
    print "\n";
    
  2. or download this
    print { (split ":", $a)[0] <=> (split ":", $b)[0] }