Help for this page

Select Code to Download


  1. or download this
    %h = (1 => 2, a=>"b", c => 2);
    %h = reverse (%x = reverse %h); 
    foreach my $n (keys %h) {
      print "$n $h{$n}\n";
    }
    
  2. or download this
     2
    1 2
    a b
    
  3. or download this
    %h = (1 => 2, a=>"b", c => 2);
    %x = reverse %h;
    ...
    foreach my $n (keys %h) {
      print "$n $h{$n}\n";
    }
    
  4. or download this
    1 2
    a b