in reply to Distance Between Geographical Coordinates
I don't know about existing perl code, but my GIS FAQ has a detailed discussion on calculating the distance between two points on the globe. See Section 5.1.
In Section
Seekers of Perl Wisdom
in reply to Distance Between Geographical Coordinates