aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2021-11-05 19:11:26 +0000
committerGitHub <noreply@github.com>2021-11-05 19:11:26 +0000
commitf54a948aea0f97ac4c56f39fccf113f008bc609c (patch)
tree78911a628f006015ff43f21ceeab8777bc81fca2
parent1708c4f1fac03e6a416ce2d5bc5b6ec6a953e878 (diff)
parentbb1aae2996b85cd3bce4bcfd73003de20a734959 (diff)
downloadperlweeklychallenge-club-f54a948aea0f97ac4c56f39fccf113f008bc609c.tar.gz
perlweeklychallenge-club-f54a948aea0f97ac4c56f39fccf113f008bc609c.tar.bz2
perlweeklychallenge-club-f54a948aea0f97ac4c56f39fccf113f008bc609c.zip
Merge pull request #5166 from jo-37/contrib
Solution to challenge 137
-rwxr-xr-xchallenge-137/jo-37/perl/ch-1.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/challenge-137/jo-37/perl/ch-1.pl b/challenge-137/jo-37/perl/ch-1.pl
new file mode 100755
index 0000000000..c4c36da145
--- /dev/null
+++ b/challenge-137/jo-37/perl/ch-1.pl
@@ -0,0 +1,11 @@
+#!/usr/bin/perl -s
+
+use v5.16;
+use warnings;
+use DateTime;
+
+# Maybe I'm missing something: The year's last day's week number is the
+# year's week count.
+say join ' ', grep DateTime->new(year => $_, month => 12, day => 31,
+ time_zone => 'floating')->week_number == 53, 1900 .. 2100;
+