Help for this page

Select Code to Download


  1. or download this
    %h  = (a=>"A", "b"=>"B");
    %h2 = reverse %h;
    print $h2{A}; #a
    
  2. or download this
    %h  = (a=>"A", "b"=>"B", "bb" => "B");
    for ( keys %h )
    {
      print $_ if $h{$_} eq "B";
    }