develooper Front page | perl.perl6.users | Postings from September 2017

Re: Need append help

Thread Previous | Thread Next
From:
Sean McAfee
Date:
September 29, 2017 18:32
Subject:
Re: Need append help
Message ID:
CANan03bSANx+nsAhvUjqyt5VBnQxjAaQ8C+XOqvBsxhszCadvA@mail.gmail.com
On Fri, Sep 29, 2017 at 11:27 AM, Brandon Allbery <allbery.b@gmail.com>
wrote:

> On Fri, Sep 29, 2017 at 2:04 PM, ToddAndMargo <ToddAndMargo@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

Thread Previous | 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