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

Re^4: Capturing parenthesis and grouping square brackets

by Eily (Prior)
on Jun 18, 2013 at 11:24 UTC ( #1039546=note: print w/replies, xml ) Need Help??

in reply to Re^3: Capturing parenthesis and grouping square brackets
in thread Capturing parenthesis and grouping square brackets

You're certainly right about the fact that my difficulty to find something wrong with this feature speaks for itself. And I actually realized that were there other cases where using parenthesis might be significant (like in a token when you don't know what's in the upper level rules), named captures would make an easy way out.

So from my humble point of view, it is a non-issue. The over-riding principle should be that change involves costs and should be avoided unless the benefits significantly outweight these costs.

I'm not going to argue with that, the answers I received helped me see some of the aspects of the matter I might not have grasped on my own, and I do see now that this is indeed little trouble. I can go back to my regexes and be content to not only know how they work, but why it's OK that they work like that :)

  • Comment on Re^4: Capturing parenthesis and grouping square brackets

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039546]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-06-21 08:57 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.