Paranoid::Network - Network functions for paranoid programs $Id: Network.pm,v 0.4 2008/08/28 06:22:51 acorliss Exp $ use Paranoid::Network; $rv = ipInNetwork($ip, @networks); $rv = hostInDomain($host, @domains); Paranoid This modules contains functions that may be useful for network operations.

ipInNetwork
$rv = ipInNetwork($ip, @networks); This function checks the passed IP against each of the networks or IPs in the list and returns true if there's a match.

hostInDomain
$rv = hostInDomain($host, @domains); This function checks the passed hostname (fully qualified) against each of the domains in the list and returns true if there's a match. None as of yet. (c) 2005 Arthur Corliss (corliss@digitalmages.com)