Ton Voon > Algorithm-Closest-NetworkAddress-0.1 > Algorithm::Closest::NetworkAddress

Download:
Algorithm-Closest-NetworkAddress-0.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.1   Source  

NAME ^

Algorithm::Closest::NetworkAddress - finds the closest network address from a defined list

DESCRIPTION ^

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).

METHODS ^

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

$self->compare($network_address)

Will find the best match in the network_address_list for the network_address specified. Returns the network address that best matches.

AUTHOR ^

Ton Voon ton.voon@altinity.com

COPYRIGHT ^

Copyright 2006 Altinity Limited

LICENSE ^

GPL

syntax highlighting: