Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: RegEx Matching, Loop Breaking...

by Laurent_R (Parson)
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 about the Monastery: (11)
As of 2014-09-19 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (144 votes), past polls