you can also get rid of that pesky array
use Socket;print "$_\n".inet_ntoa((gethostbyname$_)[4])."\n\n" for @AR +GV;
In reply to Re^2: Dns lookups
by perlaintdead
in thread Dns lookups
by perlaintdead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |