Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: RegEx Matching, Loop Breaking...

by Laurent_R (Monsignor)
on May 28, 2013 at 17:50 UTC ( #1035669=note: print w/ replies, xml ) Need Help??

in reply to RegEx Matching, Loop Breaking...

Asides from the fact that you need to chomp the data from your file, I think is is probably not a good idea to open, read and close a file for every single line of input of anoher file.

You probably want to read your domain file only once at the beginning, clean and store its content in memory (in an array or a hash) for when you process your other file.

Comment on Re: RegEx Matching, Loop Breaking...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2015-11-29 16:56 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls