Would that need to be a double backslash in a double-quoted string, or
is there some new Perl 6 magic that keep it from being needed?
No, it would need to be a double backslash in a qq{..} string.
Fortunately qq{..} strings are very rarely needed in Cs.
Damian
Damian Conway wrote:
Joe Gottman asked:
How do you put a literal '{' or '}' into a format string in Perl 6? Do
you use a backslash?
Yes, a backslash will quote anything (including backslash).
Note that you really only need to backslash '{', since '}' isn't special
by itself.
Would that need to be
Joe Gottman asked:
How do you put a literal '{' or '}' into a format string in Perl 6? Do
you use a backslash?
Yes, a backslash will quote anything (including backslash).
Note that you really only need to backslash '{', since '}' isn't special by
itself.
Damian
How do you put a literal '{' or '}' into a format string in Perl 6? Do
you use a backslash?
Joe Gottman