in reply to Re: variable not passing
in thread variable not passing
use Socket; use strict; my $addy = shift || die "Enter a IP address"; my $port = getservbyname('smtp', 'tcp'); my $sin = sockaddr_in($port,inet_aton($addy)); my $client = gethostbyaddr($sin, AF_INET); # get name if ($client) { print $client, "\n\a"; } else { print "no\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: variable not passing
by gaal (Parson) on Dec 07, 2004 at 19:05 UTC | |
by Anonymous Monk on Dec 08, 2004 at 10:56 UTC |