aboutsummaryrefslogtreecommitdiff
path: root/challenge-016
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-016
parentdd979819d8042c04464033dcff0c2853546e34c1 (diff)
downloadperlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.gz
perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.tar.bz2
perlweeklychallenge-club-d12a3c58624c219f252e34b926797aa1b68a69fa.zip
use Modern::Perl
Diffstat (limited to 'challenge-016')
-rw-r--r--challenge-016/paulo-custodio/perl/ch-1.pl4
-rw-r--r--challenge-016/paulo-custodio/perl/ch-2.pl4
-rw-r--r--challenge-016/paulo-custodio/test.pl4
3 files changed, 3 insertions, 9 deletions
diff --git a/challenge-016/paulo-custodio/perl/ch-1.pl b/challenge-016/paulo-custodio/perl/ch-1.pl
index 0938764ac7..b7e465f7a8 100644
--- a/challenge-016/paulo-custodio/perl/ch-1.pl
+++ b/challenge-016/paulo-custodio/perl/ch-1.pl
@@ -11,9 +11,7 @@
#
# Write a script that figures out which guest gets the largest piece of pie.
-use strict;
-use warnings;
-use 5.030;
+use Modern::Perl;
my $pie = 1;
my @guest_slice;
diff --git a/challenge-016/paulo-custodio/perl/ch-2.pl b/challenge-016/paulo-custodio/perl/ch-2.pl
index 6155424257..dda8e0fb54 100644
--- a/challenge-016/paulo-custodio/perl/ch-2.pl
+++ b/challenge-016/paulo-custodio/perl/ch-2.pl
@@ -15,9 +15,7 @@
# 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2
# 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy
-use strict;
-use warnings;
-use 5.030;
+use Modern::Perl;
use Crypt::Digest::SHA256 'sha256';
use constant BASE58 => 58;
diff --git a/challenge-016/paulo-custodio/test.pl b/challenge-016/paulo-custodio/test.pl
index e2c3f98adc..1017049192 100644
--- a/challenge-016/paulo-custodio/test.pl
+++ b/challenge-016/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 binary"), <<END;
Guest 10 gets 6.2816% of the pie.