develooper Front page | perl.perl5.porters | Postings from April 2000

Re: [ID 20000411.002] qw() gives different results in 5.6 to previous versions

Thread Previous | Thread Next
From:
Gurusamy Sarathy
Date:
April 14, 2000 16:44
Subject:
Re: [ID 20000411.002] qw() gives different results in 5.6 to previous versions
Message ID:
200004142343.QAA05204@maul.ActiveState.com
On Wed, 12 Apr 2000 15:11:36 BST, "M.J.T. Guy" wrote:
>Graham Barr <gbarr@dhcp69.uk.valueclick.com> wrote
>> During the change to make qw() compile time the interpretation of
>> the contents seems to have changed too.
>> 
>$ perl5.00503 -le 'print qw{ (?:\\\\.|[^\\\\()]+)* }'
>> (?:\\.|[^\\()]+)*
>> 
>> $ perl5.6.0  -le 'print qw{ (?:\\\\.|[^\\\\()]+)* }'
>> (?:\\\\.|[^\\\\()]+)*  
>
>Clearly a bug, since both 5.005_03 and 5.6.0, in their own ways, say that
>the argument to qw{} is subject to q{} quoting:

Agreed.  I think the KEY_qw processing in toke.c is missing the moral
equivalent of calling tokeq(PL_lex_stuff).  Patch welcome.


Sarathy
gsar@ActiveState.com

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