On 2019-11-29 23:49, William Michels via perl6-users wrote:
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.
Hi Bill,
That would make sense.
I am finding all kinds of little annoyances with the
Windows version that don't exist in the Linux version.
But as long as I can work around them, Perl 6 is so, so
much better than it is not a issue.
Thank you for the help!
-T
One of the weirdest was
for @Result.kv -> $I, $Line {
if $I % 2 = 0
being told I could not change an immutable object.