Perl: the Markov chain saw | |
PerlMonks |
Re: Sorting Criteriaby antirice (Priest) |
on Aug 05, 2003 at 18:12 UTC ( [id://281112]=note: print w/replies, xml ) | Need Help?? |
Aristotle++ has already answered your questions. However, I would like to point out that your code does not return anything when $hashMonth{$a} > $hashMonth{$b} -or- $hashMonth{$a} == $hashMonth{$b} and $hashDay{$a} >= $hashDay{$b}. You can fix this by removing the else block and just replacing it with return $b. antirice
In Section
Seekers of Perl Wisdom
|
|