develooper Front page | perl.perl6.users | Postings from November 2019

Quoting issue in Windows

Thread Next
ToddAndMargo via perl6-users
November 30, 2019 04:33
Quoting issue in Windows
Message ID:
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:

I have to take out the '\' and replace it with "\\" to
get it to stop complaining.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About