Algorithm::Closest::NetworkAddress - finds the closest network address from a defined list
Given a network address (IP address or fully qualified DNS name) and a list of other addresses, will return the name with the closest match. "Closest" is defined as exactly the same tuple from the back (for DNS names) or from the front (for IP addresses).
Algorithm::Closest::NetworkAddress->new(network_address_list => ["mon.der.altinity", "mon.lon.altinity", "mon.ny.altinity", "10.20.30.40"]);
Creates an object containing the list of addresses to compare against
Will find the best match in the network_address_list for the network_address specified. Returns the network address that best matches.
Copyright 2006 Altinity Limited