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

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

Thread Previous | Thread Next
From:
Jeff Pinyan
Date:
April 11, 2000 05:39
Subject:
Re: [ID 20000411.002] qw() gives different results in 5.6 to previousversions
Message ID:
Pine.GSO.4.21.0004110838150.16448-100000@crusoe.crusoe.net
>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{ (?:\\\\.|[^\\\\()]+)* }'
>(?:\\\\.|[^\\\\()]+)*  

Whoa.  So instead of just being a compile-time list, you get TRUE
single-quoted context?  Have you tried doing

  qw( this \) that )

I'm just curious because the only other place you can get 0 interpolation
like that is in a single-quoted here-document.

-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve             japhy@pobox.com
http://www.pobox.com/~japhy/                  http://pinyaj.stu.rpi.edu/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.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