Dan wrote:

> 
> i've had a look at the Net::hostent
> package that was suggested to me, seems ok, yet to grasp with how it
> works
> 

Net::hostent is easy to use:

#!/usr/bin/perl -w
use strict;

use Net::hostent qw(gethost);

my $h = gethost('216.239.51.101');
if($h){
        print $h->name,"\n";
}

__END__

prints:

www.google.com

david

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to