Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Possible to have regexes act on file directly (not in memory)

by Nocturnus (Beadle)
on May 07, 2014 at 07:39 UTC ( [id://1085287]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Possible to have regexes act on file directly (not in memory)
in thread Possible to have regexes act on file directly (not in memory)

As far as I have understood, pos won't help because it works in conjunction with regular expressions, and (as this thread has shown clearly enough), this always means loading to memory which is not an option in my case. Please correct me if I am wrong.

While I appreciate any help and while I would like to thank you explicitly for taking the time, I can't resist commenting on the XY problem:

I am not one of the guys who try to let others work for them. I will never shout "Hi everybody, I have problem X, please find as many solutions as possible to that problem for me". Instead, I am trying to work out a set of possible solutions, in this case writing my own parser which acts directly on the files being one of these and trying to use regular expressions which directly operate on the files being a second one.

Since I know how to do the former, and since I didn't know how to do the latter or even if the latter is feasible at all, I just asked for the latter one.

By full intent, I do not want others to solve my problems; instead, I am aware that the others' time is a precious resource and thus try to only ask the things I don't know and couldn't research myself after having put great efforts on it. IMHO, this is not only perfectly acceptable, but I honestly think that more people should act in this manner.

Furthermore, at philosophical level, the solution to every problem is to not want to solve it. Thus, if I had given you the "root" problem, what would prevent you from saying: "Hey, this again is an example for people asking for Y when they mean X. You really don't need to solve that problem. Search for other customers or go to holidays with your family."?

Finally, my question was clear, precise and specific; I think I even wouldn't have needed to give the example to understand the problem. As the others' contributions have shown, they have understood the essence of the problem very well, and I think that most of them did so as soon as having read the headline. People who don't understand the problem at theoretical or example level won't be able to help at all.

Looking into a problem at theoretical or example level does not have anything to do with speculation.

Thanks again,

Nocturnus

  • Comment on Re^4: Possible to have regexes act on file directly (not in memory)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found