in reply to Challenge: sort weekdays in week-order (elegantly and efficiently)
> is there a way without using that %order?
ehm ... you need this order information somehow.
So is your question
- if this order could be taken from some Date or Time module like DateTime
- or if there is some obfuscated way to calculate it like with the Doomsday algorithm
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
Side note: The week starts traditionally on Sunday. At least for the church.
In Section
Cool Uses for Perl