![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Sorting hash keys according to different criteriaby George_Sherston (Vicar) |
on Jun 24, 2003 at 17:19 UTC ( #268599=note: print w/replies, xml ) | Need Help?? |
Depending on what you're doing with this you might find an array of hashes useful. This would give you the data in the fixed order ordained by the calendar - you could then pull it out however you liked, and even have a framework for adding more info.
etc etc etc You could then use the month number returned by localtime to pull data out of this array. Having said that, if you're doing a lot of date calculations, then half an hour rummaging around in CPAN would probably save you time. § George Sherston
In Section
Seekers of Perl Wisdom
|
|