Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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

Replies are listed 'Best First'.
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?
[ELISHEVA]: Simple yes. and I did consider that. but this isn't one off . An important data source that I don't control is generating bom prefixed utf8 files and I'd rather not have to be munging files every few months.
[erix]: on teh other hand a SOPW is pretty much garanteed to get an answer from tux (and probably the module fixed)
[ELISHEVA]: plus it bugs me that something that *should* be simple, *should* work- unicode and noms aren't exactly the new kids on the block
[ELISHEVA]: well then since the obvious possible mistakes on my part have been ruled out, SOPW it is.
[ELISHEVA]: the data source, or one of them, is the OECD - they provide a *lot* of data that ought to be easily available to perl programmers.
[erix]: it might be cunning to mention the module in the title... :)
[ELISHEVA]: fancy that - a title that actually describes the problem :-)
[ELISHEVA]: but actually thanks for the reminder
[Discipulus]: DBI::CSV + utf8 = BOO?M
[erix]: in extremis we tend to forget stuff ;)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2017-05-28 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?