develooper Front page | perl.perl5.porters | Postings from September 2011

[perl #93640] Allow comments in qw()

Thread Previous | Thread Next
From:
Eric Brine via RT
Date:
September 18, 2011 16:33
Subject:
[perl #93640] Allow comments in qw()
Message ID:
rt-3.6.HEAD-31297-1316388782-579.93640-15-0@perl.org
On Sun Sep 18 15:37:49 2011, tom christiansen wrote:
> >--0015173fed80493f3604ad3e7b8a
> >Content-Type: text/plain; charset=ISO-8859-1
> 
> >On Thu, Jun 30, 2011 at 1:25 PM, Jesse Vincent <jesse@fsck.com> wrote:
> 
> >> I'm not in favor of this one. It breaks my assumptions about
> >> what qw means. (Those being "This text will be split on whitespace
> >> boundaries but otherwise won't be touched")
> >>
> 
> >I consider comments part of whitespace (that which separates token
but has
> >no other effect on the code).
> 
> >perlsyn says comments can appear anywhere except in strings and regular
> >expressions, qw() being neither.
> 
> 
> No.  qw() is a literal q-string that just happens to go through split " ".

I don't know where you are getting your information.

perlop calls C<q> and C<qq> string literals, but calls C<qw> a word list.

Since you mention C<split>, you could be talking about the
implementation? The implementation is irrelevant, but C<split> is not
involved in parsing c<qw>.


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