in reply to inet_aton
Here is a sample use of inet_aton():use strict; use Socket; my $p = gethostbyname('localhost'); my $ip = inet_ntoa($p); print "$ip\n";
I hope that answers your question.perl -MSocket -le 'print scalar gethostbyaddr(inet_aton("127.0.0.1"),A +F_INET)'
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
|
|---|