diff options
| author | Paulo Custodio <pauloscustodio@gmail.com> | 2021-11-03 16:10:13 +0000 |
|---|---|---|
| committer | Paulo Custodio <pauloscustodio@gmail.com> | 2021-11-03 16:10:13 +0000 |
| commit | d12a3c58624c219f252e34b926797aa1b68a69fa (patch) | |
| tree | 507a3ff52cb4a2185864239190ba13155df1cbf8 /challenge-018 | |
| parent | dd979819d8042c04464033dcff0c2853546e34c1 (diff) | |
| download | perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.gz perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.bz2 perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.zip | |
use Modern::Perl
Diffstat (limited to 'challenge-018')
| -rw-r--r-- | challenge-018/paulo-custodio/perl/ch-1.pl | 4 | ||||
| -rw-r--r-- | challenge-018/paulo-custodio/perl/ch-2.pl | 4 | ||||
| -rw-r--r-- | challenge-018/paulo-custodio/test.pl | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/challenge-018/paulo-custodio/perl/ch-1.pl b/challenge-018/paulo-custodio/perl/ch-1.pl index 46faec62ef..988bbaf71b 100644 --- a/challenge-018/paulo-custodio/perl/ch-1.pl +++ b/challenge-018/paulo-custodio/perl/ch-1.pl @@ -9,9 +9,7 @@ # Other common substrings are “A”, “AB”, “B”, “BA”, “BC” and “C”. Please check # this wiki page for details. -use strict; -use warnings; -use 5.030; +use Modern::Perl; say "(", join(", ", map {$_=qq("$_")} longest_substr(@ARGV)), ")"; diff --git a/challenge-018/paulo-custodio/perl/ch-2.pl b/challenge-018/paulo-custodio/perl/ch-2.pl index 6ca55f29e1..9b27f43c12 100644 --- a/challenge-018/paulo-custodio/perl/ch-2.pl +++ b/challenge-018/paulo-custodio/perl/ch-2.pl @@ -15,9 +15,7 @@ # highest priority, and return it. If two elements have the same priority, # then return element added first. -use strict; -use warnings; -use 5.030; +use Modern::Perl; # implement a Priority-queue as an ordered list of [priority, list of elements] { diff --git a/challenge-018/paulo-custodio/test.pl b/challenge-018/paulo-custodio/test.pl index fee445405b..a60d3559d3 100644 --- a/challenge-018/paulo-custodio/test.pl +++ b/challenge-018/paulo-custodio/test.pl @@ -1,9 +1,7 @@ #!/usr/bin/perl -use strict; -use warnings; +use Modern::Perl; use Test::More; -use 5.030; is capture("perl perl/ch-1.pl ABABC BABCA ABCBA"), <<END; ("ABC") |
