Help for this page

Select Code to Download


  1. or download this
    use Tie::Hash::Sorted;
    my %ages = ( 'John' => 33,
    ...
    for my $name ( keys %sorted_ages ) {
       print "$name is $sorted_ages{$name} years old.\n";
    }