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-002 | |
| 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-002')
| -rw-r--r-- | challenge-002/paulo-custodio/perl/ch-1.pl | 4 | ||||
| -rw-r--r-- | challenge-002/paulo-custodio/perl/ch-2.pl | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/challenge-002/paulo-custodio/perl/ch-1.pl b/challenge-002/paulo-custodio/perl/ch-1.pl index bb82c75446..8bafbe57a7 100644 --- a/challenge-002/paulo-custodio/perl/ch-1.pl +++ b/challenge-002/paulo-custodio/perl/ch-1.pl @@ -5,9 +5,7 @@ # Challenge #1 # Write a script or one-liner to remove leading zeros from positive numbers. -use strict; -use warnings; -use 5.030; +use Modern::Perl; my($N) = @ARGV; $N =~ s/^0+(\d)/$1/; diff --git a/challenge-002/paulo-custodio/perl/ch-2.pl b/challenge-002/paulo-custodio/perl/ch-2.pl index 487857b096..bad58bb556 100644 --- a/challenge-002/paulo-custodio/perl/ch-2.pl +++ b/challenge-002/paulo-custodio/perl/ch-2.pl @@ -7,9 +7,7 @@ # representation, using the characters 0-9 and A-Y. Dave Jacoby came up # with nice description about base35, in case you needed some background. -use strict; -use warnings; -use 5.030; +use Modern::Perl; use constant { BASE => 35 }; my @digits = ('0'..'9','A'..'Z'); |
