develooper Front page | perl.perl5.porters | Postings from March 2021

Re: Perl feature wish: quote-word array-ref operator

Thread Previous
From:
Christian Walde
Date:
March 5, 2021 10:19
Subject:
Re: Perl feature wish: quote-word array-ref operator
Message ID:
op.0zr1moeyydyjqt@xenwide.vpn.udag.de
On Fri, 05 Mar 2021 10:05:34 +0100, Konovalov, Vadim <Vadim.Konovalov@dell.com> wrote:

>> > It would be handy to have a "quote word arrayref operator" in Perl,
>> > that combines [] with qw.
>> >
>> > So instead of writing:
>> >
>> >     $a = [ qw/ one two three/ ];
>> >
>> > You could write:
>> >
>> >
>> $a = qa[ one two three ];
>>
>> +1
>
> I like it

I didn't know i wanted this, but now i know i wanted it every single one of those thousands of times i wrote this.

-- 
With regards,
Christian Walde

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