Skip to content

Commit

Permalink
Mention that qqw// can also be written as << >>
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 12, 2018
1 parent f6328ae commit d13b36d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/Language/5to6-perlop.pod6
Expand Up @@ -296,11 +296,12 @@ acts as list of C<Pair>s when stringified). You can also interpolate Perl 6
code in strings using curly braces. For all the details, see
L<Interpolation|/language/quoting#Interpolation%3A_qq>.
C<qw> works as in Perl 5, and can also be rendered as C<< <...> >>. E.
g. C<qw/a b c/> is equivalent to C<< <a b c> >>.
C<qw> works as in Perl 5, and can also be rendered as C<< <...> >>. E.g.
C<qw/a b c/> is equivalent to C<< <a b c> >>.
There is also a version of C<qw> that interpolates, which is C<qqw>. So
C<my $a = 42;say qqw/$a b c/;> gives you "42 b c".
C<my $a = 42;say qqw/$a b c/;> gives you "42 b c". C<qqw> can also be
rendered as C< <<...>> >.
Shell quoting is available through C<qx>, but you should note that
backticks do not do shell quoting as in Perl 5, and Perl variables are
Expand Down

1 comment on commit d13b36d

@b2gills
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<<a b c>> is actually qqww/a b c/ not qqw/a b c/

Please sign in to comment.