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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Challenge: sort weekdays in week-order (elegantly and efficiently)
by bliako (Monsignor) on Jul 21, 2022 at 14:50 UTC | |
by LanX (Saint) on Jul 21, 2022 at 15:44 UTC |
In Section
Cool Uses for Perl