Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
            print "KEY:$key\n";
        }
    }
    
  2. or download this
    my %myhash = { 1 => 'a', 2=> 'b', 3=> 'a', 4=>'c'};
    
  3. or download this
    use strict;
    my $myhash = { 1 => 'a', 2=> 'b', 3=> 'a', 4=>'c'};
    for my $key (keys %{$myhash}){
    ...
            print "KEY:$key\n";
        }
    }