aboutsummaryrefslogtreecommitdiff
path: root/challenge-001
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-001
parentdd979819d8042c04464033dcff0c2853546e34c1 (diff)
downloadperlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.gz
perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.bz2
perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.zip
use Modern::Perl
Diffstat (limited to 'challenge-001')
-rw-r--r--challenge-001/paulo-custodio/perl/ch-1.pl4
-rw-r--r--challenge-001/paulo-custodio/perl/ch-2.pl4
2 files changed, 2 insertions, 6 deletions
diff --git a/challenge-001/paulo-custodio/perl/ch-1.pl b/challenge-001/paulo-custodio/perl/ch-1.pl
index f8a9a4ee24..4305519c76 100644
--- a/challenge-001/paulo-custodio/perl/ch-1.pl
+++ b/challenge-001/paulo-custodio/perl/ch-1.pl
@@ -7,9 +7,7 @@
# ‘Perl Weekly Challenge’. Also print the number of times the character ‘e’
# is found in the string.
-use strict;
-use warnings;
-use 5.030;
+use Modern::Perl;
my $s = @ARGV ? "@ARGV" : "Perl Weekly Challenge";
say(($s =~ tr/e/E/), " ", $s);
diff --git a/challenge-001/paulo-custodio/perl/ch-2.pl b/challenge-001/paulo-custodio/perl/ch-2.pl
index f17660f213..210d1364ca 100644
--- a/challenge-001/paulo-custodio/perl/ch-2.pl
+++ b/challenge-001/paulo-custodio/perl/ch-2.pl
@@ -8,9 +8,7 @@
# ‘fizz’ and any divisible by 5 by the word ‘buzz’. Those numbers that are both
# divisible by 3 and 5 become ‘fizzbuzz’.
-use strict;
-use warnings;
-use 5.030;
+use Modern::Perl;
my $n = shift || 20;
for (1 .. $n) {