|
|
| Just another Perl shrine | |
| PerlMonks |
Re: problem with $ARGby Random_Walk (Parson) |
| on Feb 05, 2009 at 10:56 UTC ( #741520=note: print w/ replies, xml ) | Need Help?? |
|
briefly, risolve is clobbering your $_ which is the default place to which you read the records from the DNS handle. $_ is a global variable so this self same $_ is then used as the key for your hash.
If risolve is intended to resolve the IP address of the hosts you can do this with pure Perl using gethostbyname. This will return a record that you will need to process to get human readable IP address, the linked docco explains how to do this. Cheers,
Pereant, qui ante nos nostra dixerunt!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||