From 7684bf94276fe93d56c78ae27f6e6916222b230f Mon Sep 17 00:00:00 2001 From: Jörg Sommrey <28217714+jo-37@users.noreply.github.com> Date: Mon, 3 Jul 2023 21:52:48 +0200 Subject: Solution to task 1 --- challenge-224/jo-37/perl/ch-1.pl | 68 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100755 challenge-224/jo-37/perl/ch-1.pl diff --git a/challenge-224/jo-37/perl/ch-1.pl b/challenge-224/jo-37/perl/ch-1.pl new file mode 100755 index 0000000000..d402e1bc5e --- /dev/null +++ b/challenge-224/jo-37/perl/ch-1.pl @@ -0,0 +1,68 @@ +#!/usr/bin/perl -s + +use v5.24; +use Test2::V0; + +our ($tests, $examples); + +{ + # Import the solution from week #221. + package CH_221; + + # Without arguments, the called program will die with a usage + # message. Capture this message as success indicator. + local @ARGV; + do '../../../challenge-221/jo-37/perl/ch-1.pl'; + die $@ unless $@ =~ /^usage: $0/; +} + +run_tests() if $tests || $examples; # does not return + +die <