Perl: the Markov chain saw | |
PerlMonks |
Re^2: Challenge: sort weekdays in week-order -- Lokidayby Discipulus (Canon) |
on Jul 22, 2022 at 10:21 UTC ( [id://11145649]=note: print w/replies, xml ) | Need Help?? |
bravo choroba! I was trying something similar but I easily get annoyed by strptime et similia... Infact even with your code I hit Error parsing time at C:/perl5.26.64bit/perl/lib/Time/Piece.pm line 581. I'd modify your code to be even more stable, in the case they accept my proposal for 8 days week, adding Lokiday as jolly day free for all :D
bliako: your solution is already elegant, readable and perlish: dont overcomplicate :) L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Cool Uses for Perl
|
|