aboutsummaryrefslogtreecommitdiff
path: root/challenge-030
diff options
context:
space:
mode:
authorJörg Sommrey <28217714+jo-37@users.noreply.github.com>2023-03-26 12:59:51 +0200
committerJörg Sommrey <28217714+jo-37@users.noreply.github.com>2023-04-19 17:15:33 +0200
commita26a191a1c4bcb05994997e1fbf506697bada07a (patch)
tree62b5ab69c55abc7c48d9852394600ab39a08c574 /challenge-030
parent8ecb35a8a99c82a4bf8e4000b5cf7d5fa292a701 (diff)
downloadperlweeklychallenge-club-a26a191a1c4bcb05994997e1fbf506697bada07a.tar.gz
perlweeklychallenge-club-a26a191a1c4bcb05994997e1fbf506697bada07a.tar.bz2
perlweeklychallenge-club-a26a191a1c4bcb05994997e1fbf506697bada07a.zip
challenge 030 task 1
Diffstat (limited to 'challenge-030')
-rwxr-xr-xchallenge-030/jo-37/perl/ch-1.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-030/jo-37/perl/ch-1.pl b/challenge-030/jo-37/perl/ch-1.pl
new file mode 100755
index 0000000000..ed9c2bfe2b
--- /dev/null
+++ b/challenge-030/jo-37/perl/ch-1.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+
+use v5.16;
+use warnings;
+use Date::Manip::Recur;
+
+# Select the years where 25 Dec is Sunday.
+say $_->printf('%Y') for grep $_->printf('%w') == 7,
+ Date::Manip::Recur->new("*2019-2100:12:0:25:0:0:0")->dates;
+