in reply to
sorting a hash by its values, date
The problem is that you can't sort a hash, you sort an array of, for instance, the keys of the hash. So replacing
sort by_date %H
with
sort by_date keys %H
should work.
Comment on
Re: sorting a hash by its values, date
Replies are listed 'Best First'.
Re^2: sorting a hash by its values, date
by
levbao
(Initiate)
on Aug 16, 2004 at 23:48 UTC
Thank you so much for your answer. But the date is the values of the hash, not the keys of the hash.
[reply]
In Section
Seekers of Perl Wisdom