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
Ricardo Signes
March 5, 2016 18:14
Re: [perl #127640] RFE: "qqw( $var/x $var/y word3 $var4=word4 )"
Message ID:
* Linda Walsh <> [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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About