On Sat, Nov 30, 2019 at 12:05 AM ToddAndMargo via perl6-users
<perl6-us...@perl.org> wrote:
>
> 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.

Hi Todd, You should definitely write up some code and post it here on
the mailing list, so we all can test it. I found an error "Cannot
modify an immutable Match" a while back (Oct 2019), and it turned out
to be a bug:

https://www.nntp.perl.org/group/perl.perl6.users/2019/10/msg7067.html

Best Regards, Bill.

Reply via email to