Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://346688]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-07-24 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (353 votes). Check out past polls.