This perl library aims to provide as many tools to make it as simple as possible to calculate distances between geographic points, and anything that can be derived from that. WWW: http://search.cpan.org/dist/GIS-Distance/