aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchallenge-185/perlboy1967/perl/ch-1.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-185/perlboy1967/perl/ch-1.pl b/challenge-185/perlboy1967/perl/ch-1.pl
index 93cf7b0f37..145efb72ad 100755
--- a/challenge-185/perlboy1967/perl/ch-1.pl
+++ b/challenge-185/perlboy1967/perl/ch-1.pl
@@ -23,7 +23,7 @@ use Test::More;
sub macFormat ($) {
- state $re = join '\.', map { '([0-9a-f]{2})' x 2 } (1 .. 3);
+ state $re = join '\.', ('([0-9a-f]{2})' x 2) x 3;
return join(':',$1,$2,$3,$4,$5,$6)
if ($_[0] =~ /(?i)^$re$/o);
}