On Mon, Jan 12, 2009 at 03:43:47AM -0800, Jon Lang wrote:
: On Mon, Jan 12, 2009 at 2:15 AM, Carl Mäsak <[email protected]> wrote:
: > Ovid (>):
: >> $ perl6 -e 'my $foo = "foo";say "{" ~ $foo ~ "}"'
: >> ~ foo ~
: >
: > Easy solution: only use double quotes when you want to interpolate. :)
: >
: > This is not really an option when running 'perl6 -e' under bash, though.
:
: $ perl6 -e 'my $foo = "foo";say q:qq({" ~ $foo ~ "})'
:
: ...or something to that effect.
Assuming that's what was wanted. I figgered they want something more
like:
$ perl6 -e 'my $foo = "foo"; say q[{] ~ $foo ~ q[}];'
Larry