Help for this page

Select Code to Download


  1. or download this
    my %hash = ( A => [1,2], 
                  B => [4,6]); 
    ...
    -- Output---
    A:  1 2
    B:  4 6
    
  2. or download this
    my %hash = ( S => [1,2],  B => [4,6],); 
    print qq($_: @{$hash{$_}}\n) for sort keys %hash;
    ...
    --output--(Notice, it IS sorted)--
    B: 4 6
    S: 1 2