in reply to sorting a split hash
For the sorting, please look atuse Date::Parse; my ($x,$y)=split /\|/, 'Mon Oct 11 00:08:11 2004|12963'; print qq(x=$x\n); my $t=str2time($x); print qq(T=$t\n); # OUPUT ############## # x=Mon Oct 11 00:08:11 2004 # T=1097478491 ##in perl/unix time() format
How do I sort a hash by its values?
Earth first! (We'll rob the other planets later)
|
|---|