Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Need help with script with a while loop reading file

by NetWallah (Abbot)
on May 03, 2013 at 14:54 UTC ( #1031907=note: print w/ replies, xml ) Need Help??


in reply to Need help with script with a while loop reading file

Move the line

my $res = Net::DNS::Resolver->new( ...
outside the "while (<FILE>)" loop - It does not need to be created for each record.

             "I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
        -- Dr. Cox, Scrubs


Comment on Re: Need help with script with a while loop reading file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2014-10-02 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (56 votes), past polls