On 09/29/2017 11:32 AM, Sean McAfee wrote:
On Fri, Sep 29, 2017 at 11:27 AM, Brandon Allbery <allber...@gmail.com <mailto:allber...@gmail.com>> wrote:

    On Fri, Sep 29, 2017 at 2:04 PM, ToddAndMargo <toddandma...@zoho.com
    <mailto:toddandma...@zoho.com>> wrote:


        Question:  Is thee a pretty way like the above to do a prepend?


    No, sorry.


Actually, there seems to be:

 > my $x = "abc"
abc
 > $x [R~]= "xyz"
xyzabc
 > $x
xyzabc


:'(

What am I doing wrong?


$ 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



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to