Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^10: Best practice or cargo cult?

by sgt (Chaplain)
on Feb 02, 2007 at 22:15 UTC ( #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


Comment on Re^10: Best practice or cargo cult?
Re^11: Best practice or cargo cult?
by BrowserUk (Pope) 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.

        Yeah! I have a mnemonic for remembering how to spell that word and a bunch of other difficult ones. It goes like this: Don't F^%&^&%&^ bother! :)

        The only reason English persists with its ludicrous, illogical and inconsistant spelling, is because there are a bunch of fuddy duddies that believe that simplifying and regularising its spelling would somehow steal its power to captivate and move us.

        Personally, I put that right up there along side the beliefs and superstitions of some old time native cultures & religions that thought someone taking their photograph would steal their souls.

        Many other languages, including Dutch, German, Scandanavian have taken the step of regularising their spellings over the last 30 years, and the ongoing benefits to their younger generations education standards are manifest.


        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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (15)
As of 2014-07-23 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (143 votes), past polls