Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: m modifier

by hnd (Scribe)
on Aug 14, 2009 at 06:13 UTC ( [id://788534]=note: print w/replies, xml ) Need Help??


in reply to m modifier

i had this doubt before and got it cleared here.... this is what i learned....

/m modifier are used to to let $ and ^ match before and after a \n respectively for eg if you do  /^foo/m it would not only match at the beginning but also right after a newline character (ie the second line)...

now for /s modifier it is necessary to know what '.' does usually. it doesn't match the newlines normally ie you have to force it to match the newlines as well for eg  /foo.bar/s would match foo and bar on different lines...

=====================================================
i'am worst at what do best and for this gift i fell blessed...
i found it hard it's hard to find well whatever
NEVERMIND

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-16 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found