Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: example of 'm / / m' related example and compare to 'm / / s'

by ww (Archbishop)
on Nov 28, 2011 at 18:09 UTC ( [id://940424]=note: print w/replies, xml ) Need Help??


in reply to Re: example of 'm / / m' related example and compare to 'm / / s'
in thread PERL regex modifiers for m//

Line 3: " # matches both foo": are you sure?
C:>perl -e "$s = \"foo\nfoot\nroot\";($y) = $s =~ /^foo/gm;print $y;" foo

Replies are listed 'Best First'.
Re^3: example of 'm / / m' related example and compare to 'm / / s'
by ikegami (Patriarch) on Nov 28, 2011 at 18:29 UTC
    Yes, but not in the same pass.
    >perl -E"say join ',', qq{foo\nfoot\nroot} =~ /^foo/gm;" foo,foo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found