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