in reply to Simple Hash Question
Not sure if I am missing something, but if you want to print the key, print the key:
for my $key ( sort {$hash{$a} <=> $hash{$b} } keys %hash ) { print " MIRACLE_HAPPENS is equal to key : \'$key\' and value : \' +$hash{$key}\'.\n"; }
perldoc may be a good resource for further reading. HTH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple Hash Question
by johngg (Canon) on Nov 18, 2009 at 22:44 UTC | |
|
Re^2: Simple Hash Question
by BlenderHead (Novice) on Nov 18, 2009 at 22:19 UTC |