Skip to content

Commit

Permalink
Rewrites description of unquoting constructs
Browse files Browse the repository at this point in the history
Following suggestions by @cfa and @coke. Closes #1280 again. Please
feel free to reopen and/or rewrite if needed.
  • Loading branch information
JJ committed Apr 12, 2018
1 parent fddc9f6 commit 574982a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/quoting.pod6
Expand Up @@ -489,13 +489,13 @@ my ($first, $second) = qq:to/END1/, qq:to/END2/;
=head2 Unquoting
Literal strings allow I<unquoting> by escaping the quoting construct, to indicate it I<escapes> literallization:
Literal strings permit interpolation of embedded quoting constructs by using the escape sequences such as these:
my $animal="quaggas";
say 'These animals look like \qq[$animal]'; # OUTPUT: «These animals look like quaggas␤»
say 'These animals are \qqw[$animal or zebras]'; # OUTPUT: «These animals are quaggas or zebras␤»
C<\qq> is equivalent to double-quoting interpolation, and C<\qqw> to word quoting with interpolation. Using C<\> on any other quoting construct, and it within literal quotes will effectively allow de-literallization or the use of dynamic content within literal strings.
In this example, C<\qq> will do double-quoting interpolation, and C<\qqw> word quoting with interpolation. Escaping any other quoting construct as above will act in the same way, allowing interpolation in literal strings.
=head1 Regexes
Expand Down

0 comments on commit 574982a

Please sign in to comment.