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

Re: [perl #93640] Allow comments in qw()

Thread Previous | Thread Next
Eric Brine
September 18, 2011 16:59
Re: [perl #93640] Allow comments in qw()
Message ID:
On Sun, Sep 18, 2011 at 7:38 PM, Tom Christiansen <> wrote:

> I am fully aware that it no longer compiles into that, but nothing
> has changed: it is still an uninterpolated literal.

You're acting like I said there's a bug in qw().

qw() is inconsistent with the rest of Perl which defines whitespace to
include comments. (e.g. comments can separate tokens (which is the closest
the docs come to defining whitespace), regex allow comments as whitespace,
lex_read_space skips over comments, etc). And most importantly, people
expect comments to work in qw. Noy only has come up a number of over the
years, qw even warns you that it can't do comments when you try.

The module addresses the inconsistency.

- Eric

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