foreach (sort {$input_hash{$a} <=> $input_hash{$b}} keys %input_hash){ print "$input_hash{$_} \n"; }
if at all thats what you wanted.In reply to Re^2: to sort hash wrt values corresponding to keys
by ramprasad27
in thread to sort hash wrt values corresponding to keys
by ansh batra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |