Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^9: Find Prefix if regex didn't match

by Anonymous Monk
on Nov 06, 2012 at 13:18 UTC ( #1002471=note: print w/replies, xml ) Need Help??

in reply to Re^8: Find Prefix if regex didn't match
in thread Find Prefix if regex didn't match

Your benchmarks are not exactly what I thought about, what I have in my mind is:

I see :)

But, still, neither results seems very important , network is always much slower than both

Replies are listed 'Best First'.
Re^10: Find Prefix if regex didn't match
by demoralizer (Sexton) on Nov 07, 2012 at 06:31 UTC

    But, still, neither results seems very important , network is always much slower than both

    Yes, that's for sure meanwhile... in a previous versions I used $rec = <$term> instead of read($term, $rec, 0xFFFF) what came in my mind when I was writing one of my replies here and what definitely was the major reason for my timing problem because the log file I receive via TCP contains many new lines what caused much more matchings than necessary... so asking questions here has already fulfilled its purpose :)

    But what has left, there is still a problem in my mind I haven't really solved yet, that is scanning for prefixes which could be a regular expression, not just a simple ASCII string. So I'm still wondering if there is really no possibility in pearl asking the regexp engine to tell me at which position it started matching when it reached the end of given string the first time even if it hasn't reached end of expression yet...

    By the way many thanks for all your help, according to your astonishing response time I guess you live in front of your computer? ;)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002471]
[Discipulus]: what about a good 'ol SOPW?
[erix]: Giro d'Italia won by Dumoulin (peccato Nibali)
[ELISHEVA]: csv_detect_bom doesn't work either
[erix]: (SCNR)
[ELISHEVA]: I may have to resort to SOPW - but was hoping that this would be something simple
[erix]: I'd just remove the BOM, it is pretty simple
[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.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-05-28 20:32 GMT
Find Nodes?
    Voting Booth?