Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^10: Best practice or cargo cult?

by sgt (Deacon)
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

Replies are listed 'Best First'.
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.
      A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-11-28 06:27 GMT
Find Nodes?
    Voting Booth?

    No recent polls found