>Seems to me there is a bug here that > > rakudo-star-2019.03-x86_64 (JIT).msi > >is trying to interpret things inside single quotes.
If you can post a file that does that, I'll eat my hat! here's a little recap of the basic quoting, which does exactly the same in recent perl6 and decade-plus-old perl 5.6-ish bash-3.2$ *cat perl-quotes* my $name = 'mud'; print 'single quote \\ \" \' \[\] \n single name is $name', "\n"; print "double quote \\ \" \' \[\] \n double name is $name", "\n"; print q[q bracket \\ \" \' \[\] \n q bracket name is $name], "\n"; print qq[qq bracket \\ \" \' \[\] \n qq bracket name is $name],"\n"; # Can use quote instead of brackets- but most folks don't print q"q double \\ \" \' \[\] \n q double name is $name", "\n"; bash-3.2$ *perl perl-quotes ; # Classic perl* single quote \ \" ' \[\] \n single name is $name double quote \ " ' [] double name is mud q bracket \ \" \' [] \n q bracket name is $name qq bracket \ " ' [] qq bracket name is mud q double \ " \' \[\] \n q double name is $name bash-3.2$ *perl6 perl-quotes ; # Raku* single quote \ \" ' \[\] \n single name is $name double quote \ " ' [] double name is mud q bracket \ \" \' [] \n q bracket name is $name qq bracket \ " ' [] qq bracket name is mud q double \ " \' \[\] \n q double name is $name Inside 'single quotes' or q[q string] backslash only has special meaning , when escaping the string delimiter - note that ' \' ' evaluates to a single quote without the backslash, but q[ \' ] keeps the backslash. Variables only interpolated in the "double quote" qq[qq string] forms. The big Q[string] or Q'string' that Raku has is an extension of those q, qq forms. It doesn't have any escapes at all. I'm not posting an example because I have to get back to work, feel free to experiment! -y On Tue, Dec 3, 2019 at 5:48 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > >> On Tue, Dec 3, 2019 at 3:55 AM ToddAndMargo via perl6-users > >> <perl6-users@perl.org <mailto:perl6-users@perl.org>> wrote: > >> > >> On 2019-12-02 07:02, The Sidhekin wrote: > >> > > >> > On Mon, Dec 2, 2019 at 11:07 AM ToddAndMargo via perl6-users > >> > <perl6-users@perl.org <mailto:perl6-users@perl.org> > >> <mailto:perl6-users@perl.org <mailto:perl6-users@perl.org>>> wrote: > >> > > >> > > >> > What is the world is the Q doing in Q'\'? > >> > > >> > > >> > https://docs.perl6.org/language/quoting > >> > > >> > It would be clearer to write it as Q[\], I guess. > >> > > >> > > >> > Eirik > >> > >> Hi Eirik, > >> > >> Bug or feature? > >> > >> Seems to me there is a bug here that > >> > >> rakudo-star-2019.03-x86_64 (JIT).msi > >> > >> is trying to interpret things inside single > >> quotes. Single quotes is suppose to mean to > >> take it literally and no escape interpretations. > >> > >> And it is only the Windows version. In the > >> Linux version, single quote do what they > >> are suppose to do. > >> > >> I would report it to the bug reporter but I am not > >> willing to deal with the guard dog. Maybe if > >> any developers are reading this, they would take it > >> up. > >> > >> -T > >> > > On 2019-12-03 00:05, Veesh Goldman wrote: > > i'm on linux and single quotes behave like they're supposed to, and only > > escape a single quote with a backslash. Are you sure the issue you're > > having isn't with the command line or something? > > > > Hi Veesh, > > This is from a pl6 file, not the command line. > > -T > > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Computers are like air conditioners. > They malfunction when you open windows > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >