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.
In reply to Re: Simple Hash Question
by BioLion
in thread Simple Hash Question
by BlenderHead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |