Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^10: Best practice or cargo cult?

by sgt (Deacon)
on Feb 02, 2007 at 22:15 UTC ( [id://598023]=note: print w/replies, xml ) Need Help??


in reply to Re^9: Best practice or cargo cult?
in thread Best practice or cargo cult?

With /s & /m, despite that when I read the documentation their function and purpose is very clear to me, I always have to think hard about which is required to enable what, when I'm in the process actually writing regexes. It's simply easier to enable both and not get distracted from my purpose, than constantly decide which is appropriate, or is no longer appropriate, as I try out different possibilities of achieving my goal.

/sm ...superdot, multianchor

cheers --stephan

Replies are listed 'Best First'.
Re^11: Best practice or cargo cult?
by BrowserUk (Patriarch) on Feb 02, 2007 at 22:21 UTC

    It's not what they do. It's whether whatever I just added to the regex requires one, the other or both. Or whether what I just deleted cos it didn't work means I should remove, one the other or both. It's just a distraction.

    But they are nice pnuemo... newmo... nuemonics ;)


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-19 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found