Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 musing on the Monastery: (4)
As of 2015-07-06 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls