aboutsummaryrefslogtreecommitdiff
path: root/challenge-095
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-095
parentdd979819d8042c04464033dcff0c2853546e34c1 (diff)
downloadperlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.gz
perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.bz2
perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.zip
use Modern::Perl
Diffstat (limited to 'challenge-095')
-rw-r--r--challenge-095/paulo-custodio/perl/ch-1.pl4
-rw-r--r--challenge-095/paulo-custodio/perl/ch-2.pl4
-rw-r--r--challenge-095/paulo-custodio/test.pl4
3 files changed, 3 insertions, 9 deletions
diff --git a/challenge-095/paulo-custodio/perl/ch-1.pl b/challenge-095/paulo-custodio/perl/ch-1.pl
index 37a4777ec9..7334b07b4f 100644
--- a/challenge-095/paulo-custodio/perl/ch-1.pl
+++ b/challenge-095/paulo-custodio/perl/ch-1.pl
@@ -18,9 +18,7 @@
# Input: 90
# Output: 0
-use strict;
-use warnings;
-use 5.030;
+use Modern::Perl;
my $N = shift;
say join('', reverse split(//, $N)) eq $N ? 1 : 0;
diff --git a/challenge-095/paulo-custodio/perl/ch-2.pl b/challenge-095/paulo-custodio/perl/ch-2.pl
index c61c03f598..2f6b921e40 100644
--- a/challenge-095/paulo-custodio/perl/ch-2.pl
+++ b/challenge-095/paulo-custodio/perl/ch-2.pl
@@ -21,9 +21,7 @@
# $stack->push(0);
# print $stack->min; # prints -1
-use strict;
-use warnings;
-use 5.030;
+use Modern::Perl;
{
package Stack;
diff --git a/challenge-095/paulo-custodio/test.pl b/challenge-095/paulo-custodio/test.pl
index d80ac065ad..b17c664b38 100644
--- a/challenge-095/paulo-custodio/test.pl
+++ b/challenge-095/paulo-custodio/test.pl
@@ -1,8 +1,6 @@
#!/usr/bin/perl
-use strict;
-use warnings;
-use 5.030;
+use Modern::Perl;
use Test::More;
compile("gcc c/ch-1.c -o c/ch-1");