Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    my %hash = ( "rabbit" => "pap", "triangle" => "tri" );
    my $key = "rabbit";
    print $hash{$key};    # prints "pap"