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:
Ricardo Signes
Date:
March 5, 2016 18:14
Subject:
Re: [perl #127640] RFE: "qqw( $var/x $var/y word3 $var4=word4 )"
Message ID:
20160305181428.GC4677@debian
* Linda Walsh <perlbug-followup@perl.org> [2016-03-01T23:32:14]
> Every once in a while, I start filling an array using
> "qw()", when I run into, not too infrequently, a desire
> to have a var or expression as a "word".  Paths can be
> a good example:

  $x = "good job";
  @y = qqw( $x hunter );

Is @y now ('good', 'job', 'hunter') or ('good job', 'hunter')?  I would think
the latter.

I think that many Perl programmers have wished for qqw at one time or another,
me included.

-- 
rjbs

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