Net::Peep::Host - The Peep host object
use Net::Peep::Host;
The Peep host object. Used to characterize a host, including attributes such as hostname and IP address.
new() - The constuctor. name([$name]) - Sets or gets the hostname of the host object. If no hostname has been previously specified, it tries to retreive the hostname through the IP address returned by the ip() method. ip([$ip]) - Sets or gets the IP address of the host object. If no IP address has been previously specified, it tries to retreive the IP address through the hostname returned by the name() method. isIP($ip) - Returns 1 if $ip is an IP address, 0 otherwise. The determination is made by pattern matching..
Collin Starkweather (C) 2001.
perl(1), Net::Peep, Net::Peep::HostPool.
To install Net::Peep, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Peep
CPAN shell
perl -MCPAN -e shell install Net::Peep
For more information on module installation, please visit the detailed CPAN module installation guide.