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

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

Thread Previous | Thread Next
From:
Peter Makholm
Date:
September 19, 2011 01:09
Subject:
Re: [perl #93640] Allow comments in qw()
Message ID:
87obyhj6o3.fsf@vps1.hacking.dk
Eric Brine <ikegami@adaelis.com> writes:

> On Sun, Sep 18, 2011 at 7:38 PM, Tom Christiansen <tchrist@perl.com>
> 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.

Isn't it quite consisten with the default handling of # in all the other
quote like operators. Neither tr/// nor qx// have any special handling
making '#' used for comments.

In general the whitespace rules are changed inside quote like
operators quite consistenly. The only exception is that you can
explicitly turn some sort of whitespace and comment handling on for
regexpes.

//Makholm


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