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

Re: [perl #127640] RFE: "qqw( $var/x $var/y word3 $var4=word4 )"

Thread Previous | Thread Next
From:
Abigail
Date:
March 23, 2016 17:45
Subject:
Re: [perl #127640] RFE: "qqw( $var/x $var/y word3 $var4=word4 )"
Message ID:
20160323174621.GB11328@almanda.fritz.box
On Thu, Mar 10, 2016 at 07:00:53PM -0500, Ricardo Signes wrote:
> * Aristotle Pagaltzis <pagaltzis@gmx.de> [2016-03-05T16:59:38]
> > > On Sat Mar 05 10:14:48 2016, perl.p5p@rjbs.manxome.org wrote:
> > > > $x = "good job";
> > > > @y = qqw( $x hunter );
> > > >
> > > > Is @y now ('good', 'job', 'hunter') or ('good job', 'hunter')?
> > > > I would think the latter.
> > >
> > I prefer the [latter].
> 
> Me, too.
> 


Do we have to make a choice? If someone is going through the 
trouble of implementing qqw() (or something similar named), 
why not introduce two constructs, one for each option?
Then the user can use whatever he/she needs.



Abigail

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