On Fri, Sep 29, 2017 at 2:59 PM, ToddAndMargo <[email protected]> wrote:
> $ perl6 -e 'my $x="abc"; $x [R~]= "yyz"; say $x;'
> ===SORRY!=== Error while compiling -e
> Missing required term after infix
> at -e:1
> ------> my $x="abc"; $x[R~⏏]= "yyz"; say $x;
> expecting any of:
> prefix
> term
>
Missing space, so it thinks the [ is trying to index $x and then gets
confused when it sees the metaop instead of an index.
I also get a spurious warning locally with the corrected version.
pyanfar Z$ 6 'my $x = "abc"; $x[R~]= "yyz"; say $x'
===SORRY!=== Error while compiling -e
Missing required term after infix
at -e:1
------> my $x = "abc"; $x[R~⏏]= "yyz"; say $x
expecting any of:
prefix
term
zsh: exit 1
pyanfar Z$ 6 'my $x = "abc"; $x [R~]= "yyz"; say $x'
Potential difficulties:
Useless use of [R~]= in sink context
at -e:1
------> my $x = "abc"; $x ⏏[R~]= "yyz"; say $x
yyzabc
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net