develooper Front page | perl.perl5.porters | Postings from December 2007

Re: Changes in m//m in 5.10

Thread Previous
From:
Dr.Ruud
Date:
December 23, 2007 04:35
Subject:
Re: Changes in m//m in 5.10
Message ID:
20071223123547.18777.qmail@lists.develooper.com
demerphq schreef:

> $qr=/^foo/;

ITYM: $qr = qr/^foo/; 

Or does /.../ imply qr in perl 5.10? 
(wouldn't be bad) 


> $x=~/$qr/m; # warns;

Or does this also warn if $qr isn't a compiled regex? 


> $x=~/$qr|foo/m; #does not warn
> $x=~/$qr/x;  # does not warn (/x doesnt change match semantics)

That is all quite hard to read with so little whitespace. 

-- 
Affijn, Ruud

"Gewoon is een tijger."

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About