This module comes with a database of countries where various IP addresses have been assigned.

WWW: http://search.cpan.org/dist/IP-Country/
