Skip to content

Commit d792bfe

Browse files
committed
[shootout/regex-dna] workaround for unresolved spec issue, jnthn++
1 parent 4b31bc8 commit d792bfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shootout/regex-dna.p6.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The Computer Language Benchmarks Game
2-
#
2+
#
33
# Based on the submission for Perl 5.
44
# contributed by Daniel carrera
5-
#
5+
#
66
# USAGE: perl6 regex-dna.p6.pl < regex-dna.input
77

88
my $content = $*IN.slurp;
@@ -42,7 +42,7 @@
4242
'r' => '(a|g)', 's' => '(c|g)', 'v' => '(a|c|g)',
4343
'w' => '(a|t)', 'y' => '(c|t)';
4444

45-
$content .= subst(/(<[bdhkmnrsvwy]>)/, {%iub{$0}}, :global);
45+
$content .= subst(/(<[bdhkmnrsvwy]>)/, -> $/ { %iub{$0} }, :global);
4646

4747
say "\n$len_file\n$len_code\n" ~ $content.chars;
4848

0 commit comments

Comments
 (0)