Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
[stevieb]: I just received full professional license for ALL of JetBrains software due to requesting their opensource request form! I wanted only CLion, but they give them all
[stevieb]: I stated I use IDEA for Perl work, and at work, licensed version of PyCharm
[beech]: is that a good thing?

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-02-20 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (302 votes). Check out past polls.