Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Dns lookups

by hippo (Prior)
on Dec 12, 2013 at 09:44 UTC ( #1066793=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Dns lookups
in thread Dns lookups

The array is there to cope with the possibility of an unresolvable host. If you try your example above with args like

./pllookup.pl dklghslfhslgshj.com foo.com

the unresolvability of dklghslfhslgshj.com would cause it to die on the first argument, whereas with the array it will just skip that and carry on to the remaining args. To my mind that's a better UX but others may disagree.

Replies are listed 'Best First'.
Re^4: Dns lookups
by perlaintdead (Scribe) on Dec 12, 2013 at 10:46 UTC

    The golfer in me couldn't resist

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2016-06-24 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (322 votes). Check out past polls.