in reply to Re: to sort hash wrt values corresponding to keys
in thread to sort hash wrt values corresponding to keys
foreach (sort {$input_hash{$a} <=> $input_hash{$b}} keys %input_hash){ print "$input_hash{$_} \n"; }
if at all thats what you wanted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: to sort hash wrt values corresponding to keys
by ansh batra (Friar) on Nov 02, 2011 at 06:36 UTC |