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

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

Thread Previous | Thread Next
From:
Konovalov, Vadim
Date:
March 5, 2021 10:08
Subject:
RE: Perl feature wish: quote-word array-ref operator
Message ID:
DM5PR1901MB2199892B9ECD14E605BD4CF58A969@DM5PR1901MB2199.namprd19.prod.outlook.com
> > 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

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