in reply to Challenge: sort weekdays in week-order (elegantly and efficiently)
use Time::Piece; my %order = map { split ' ', 'Time::Piece'->strptime("$_", "%d")->strftime('%A %u') } 1 .. 7;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Challenge: sort weekdays in week-order -- Lokiday
by Discipulus (Canon) on Jul 22, 2022 at 10:21 UTC | |
by choroba (Cardinal) on Jul 22, 2022 at 10:28 UTC | |
by Discipulus (Canon) on Jul 22, 2022 at 11:00 UTC | |
|
Re^2: Challenge: sort weekdays in week-order (Time::Piece)
by LanX (Saint) on Jul 22, 2022 at 12:17 UTC | |
by choroba (Cardinal) on Jul 22, 2022 at 12:48 UTC | |
by LanX (Saint) on Jul 22, 2022 at 13:00 UTC |