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

Re: Need append help

Thread Previous
From:
Brandon Allbery
Date:
September 29, 2017 18:36
Subject:
Re: Need append help
Message ID:
CAKFCL4WwZyeQY3EchvMgNTqwuX2F+Z8S9UmTjgr5xJRMS8V+-g@mail.gmail.com
On Fri, Sep 29, 2017 at 2:32 PM, Sean McAfee <eefacm@gmail.com> wrote:

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

Suppose that depends on your definition of "pretty". I find that use of R
metaop more obfuscatory than pretty,

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About