On May 30, Jeffrey  Goff said:

>It's a shortcut for assigning words to an array. That statement would return
>an array that looks roughly like this:
>
>('"stuff",', '"more stuff",', '"even more stuff"') # Note the double quotes.

Nope, no matter what you do, qw() really splits on whitespace.

  friday:~ $ perl -w
  @a = qw( "stuff", "more stuff", "even more stuff" );
  Possible attempt to separate words with commas at - line 1. <-- warning
  for (@a) { print "<$_>\n" }
  __END__

  <"stuff",>
  <"more>
  <stuff",>
  <"even>
  <more>
  <stuff">

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
**        I no longer need a publisher for my Perl Regex book :)        **

Reply via email to