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