Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re(2): Unexpected qr// behavior

by bart (Canon)
on Apr 20, 2004 at 16:01 UTC ( #346688=note: print w/ replies, xml ) Need Help??


in reply to Re: Unexpected qr// behavior
in thread Unexpected qr// behavior

To make things even more clear (I hope), I'll just add that you can pass modifiers to qr, just like you can for normal regexes, like this:

$re = qr/<!--.*?-->/s; print $re;
which prints
(?s-xim:<!--.*?-->)
That is: /s enabled, and /x, /i and /m disabled.


Comment on Re(2): Unexpected qr// behavior
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://346688]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-09-21 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (167 votes), past polls