Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: The 'g' modifier in compiled regex

by rodion (Chaplain)
on Apr 09, 2007 at 09:28 UTC ( #608942=note: print w/ replies, xml ) Need Help??


in reply to Re^2: The 'g' modifier in compiled regex
in thread The 'g' modifier in compiled regex

Please don't request this feature. One of the big advantages of Perl is that, to a very large extent, it does what most programmers expect, when they think about it a little. As japhy's and ikegami's comments indicate, attaching looping behavior to a pre-compiled regex is difficult to make sense of, and it would prevent the same pre-compiled regex from being used in a looping and non-looping context, as your suggested error messages indicate.

I'm confident in the Perl architects, and so I doubt they would add this type of feature, but I also think there is significant overhead to considering a suggestion. The way I see it, the more we exercise self-restraint in our suggestions, in response to feedback here in PM, the sooner we'll see a release of Perl 6.


Comment on Re^3: The 'g' modifier in compiled regex
Re^4: The 'g' modifier in compiled regex
by exussum0 (Vicar) on Apr 09, 2007 at 15:01 UTC
    The way I see it, the more we exercise self-restraint in our suggestions, in response to feedback here in PM, the sooner we'll see a release of Perl 6.
    If they don't want new features past a certain date, then set that date, or suggest that it occurs. Last I checked, P6 will be done when it's done.

    I could see good coming out of suggesting something being put in place. It can cause a new idea for the architects to think about a happy medium between what the architects want and what he and some people like him expect.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2014-08-29 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls