We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b3f34b commit 9835edbCopy full SHA for 9835edb
doc/Language/traps.pod6
@@ -599,7 +599,6 @@ right way to do it is to use C<$(…)> or C«<{…}>» syntax.
599
=for code
600
my $x = ‘ailemac’;
601
say ‘I ♥ camelia’ ~~ / $($x.flip) /; # OUTPUT: «「camelia」»
602
-my $x = ‘ailemac’;
603
say ‘I ♥ camelia’ ~~ / <{$x.flip}> /; # OUTPUT: «「camelia」»
604
605
However, there is a wrong way to write it, and the problem is that
@@ -613,7 +612,7 @@ with more complicated inputs. For example:
613
612
my $x = ‘ailemac#’;
614
say ‘I ♥ #camelia’ ~~ / $($x.flip) /; # OUTPUT: «「#camelia」»
615
# ⚠ ↓↓ WRONG ↓↓ ⚠
616
-say ‘I ♥ camelia’ ~~ / <{$x.flip}> /; # OUTPUT: «「camelia」»
+say ‘I ♥ #camelia’ ~~ / <{$x.flip}> /;
617
# OUTPUT:
618
# ===SORRY!===
619
# Regex not terminated.
0 commit comments