Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "\n";
    @hash{@keys} = @hash{reverse @keys};
    print "$_ => $hash{$_}  " for @keys;
    
  2. or download this
    one => 1  two => 2  three => 3  
    one => 3  two => 2  three => 1