in reply to sorting a hash by its values, date
foreach $value (sort by_date values %H) { # ... }
If you need the keys, sorted by their corresponding values:
If it still doesn't work, try showing some of the input and expected output of your code.foreach $key (sort { by_date($H{$a},$H{$b}) } keys %H) { }
By the way, code can be much easier formatted using <code> tags.
|
|---|