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

Re: RegEx Matching, Loop Breaking...

by Laurent_R (Priest)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-04-20 02:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls