On Fri, Nov 29, 2019 at 8:33 PM ToddAndMargo via perl6-users <perl6-us...@perl.org> wrote: > > Hi All, > > Windows 7, sp1, x64 > rakudo-star-2019.03-x86_64 (JIT).msi > > Why does this type of line keep giving me heartburn? > > print( "Drive $Drive" ~ ":" ~ '\' ~ " dismounted\n\n" ); > > K:\Windows\NtUtil>perl6 -c WinMount.pm6 > ===SORRY!=== Error while compiling K:\Windows\NtUtil/WinMount.pm6 > Confused (runaway multi-line '' quote starting at line 84 maybe?) > > at K:\Windows\NtUtil/WinMount.pm6:92 > ------> print( "Drive $Drive" ~ ":" ~ '\<HERE>' ~ " dismounted\n\n" ); > expecting any of: > postfix > > > I have to take out the '\' and replace it with "\\" to > get it to stop complaining. > > -T
Hi Todd, sounds like a "naked" (single) backslash is being interpreted as a multi-line separator, the same separator that allows one to do multi-line input on the terminal command line (below): mbook:~ homedir$ perl6 -e 'my $Drive = "C"; \ > print( "Drive $Drive" \ > ~ ":" \ > ~ "\\" \ > ~ " dismounted\n\n" );' Drive C:\ dismounted mbook:~ homedir$ HTH, Bill.