Locale::Country

The ISO 3166 standard The ISO 3166 standard defines 2-letter and 3-letter codes for country identification. There are extension that list international organizations, like UN. A short summary.

Locale::Country (included in perl-5.8.0) is a Perl API to these standard codes.

use Locale::Country; print code2country('jp'), "\n"; # 'Japan' # 'jpn' print country_code2code('jp', LOCALE_CODE_ALPHA_2, LOCALE_CODE_ALPHA_3);