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

Quoting issue in Windows

Thread Next
From:
ToddAndMargo via perl6-users
Date:
November 30, 2019 04:33
Subject:
Quoting issue in Windows
Message ID:
735014e9-3d5e-786e-ec39-d4d86c79bc00@zoho.com
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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About