aboutsummaryrefslogtreecommitdiff
path: root/challenge-019
diff options
context:
space:
mode:
authorPaulo Custodio <pauloscustodio@gmail.com>2021-11-03 16:10:13 +0000
committerPaulo Custodio <pauloscustodio@gmail.com>2021-11-03 16:10:13 +0000
commitd12a3c58624c219f252e34b926797aa1b68a69fa (patch)
tree507a3ff52cb4a2185864239190ba13155df1cbf8 /challenge-019
parentdd979819d8042c04464033dcff0c2853546e34c1 (diff)
downloadperlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.gz
perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.bz2
perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.zip
use Modern::Perl
Diffstat (limited to 'challenge-019')
-rw-r--r--challenge-019/paulo-custodio/perl/ch-1.pl4
-rw-r--r--challenge-019/paulo-custodio/perl/ch-2.pl4
-rw-r--r--challenge-019/paulo-custodio/test.pl4
3 files changed, 3 insertions, 9 deletions
diff --git a/challenge-019/paulo-custodio/perl/ch-1.pl b/challenge-019/paulo-custodio/perl/ch-1.pl
index c1efb08557..ef4be52b5b 100644
--- a/challenge-019/paulo-custodio/perl/ch-1.pl
+++ b/challenge-019/paulo-custodio/perl/ch-1.pl
@@ -9,9 +9,7 @@
# Solution: 4 weeks are 28 days, to have 5 week-ends we need additional 3 days (29,30,31),
# therefore 31st must be a Sunday
-use strict;
-use warnings;
-use 5.030;
+use Modern::Perl;
use constant Sunday => 7;
sub is_leap {
diff --git a/challenge-019/paulo-custodio/perl/ch-2.pl b/challenge-019/paulo-custodio/perl/ch-2.pl
index 0c9cc1ecc3..dfe7ddaf5f 100644
--- a/challenge-019/paulo-custodio/perl/ch-2.pl
+++ b/challenge-019/paulo-custodio/perl/ch-2.pl
@@ -5,9 +5,7 @@
# Task #2
# Write a script that can wrap the given paragraph at a specified column using the greedy algorithm.
-use strict;
-use warnings;
-use 5.030;
+use Modern::Perl;
my $text = "";
while (<>) {
diff --git a/challenge-019/paulo-custodio/test.pl b/challenge-019/paulo-custodio/test.pl
index 16841dbd77..1ead292820 100644
--- a/challenge-019/paulo-custodio/test.pl
+++ b/challenge-019/paulo-custodio/test.pl
@@ -1,9 +1,7 @@
#!/usr/bin/perl
-use strict;
-use warnings;
+use Modern::Perl;
use Test::More;
-use 5.030;
use Path::Tiny;
is capture("perl perl/ch-1.pl"), <<END;