in reply to
Determining the distance from one zip code to another
You may also want to check out this older perlmonks article:
Searching by ZIP code
Some of the comments include links to zipcode database and links to the formula for computing the distance between 2 points of latitude/longitude.
Comment on
Re: Determining the distance from one zip code to another
In Section
Seekers of Perl Wisdom