Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: RegEx Matching, Loop Breaking...

by Laurent_R (Vicar)
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 chilling in the Monastery: (6)
As of 2014-07-31 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls