Acme-CPANModules-CountryCodes
view release on metacpan or search on metacpan
Locale::Country and Locale::Codes::Country (both part of Locale::Codes
now) should be your first go-to module. They are core modules since perl
5.14 (Locale::Country from 5.8) and they support converting between
English country names and 2-letter- and 3-letter ISO country codes, and
retired codes. If you need to squeeze some milliseconds of loading time,
you can use Locale::Codes::Country_Codes directly.
Multilingual
There are some modules for non-English country names, e.g.
Locale::Codes::Country::FR (for French). There is also
Locale::Country::Multilingual to map ISO codes to localized country
names.
Subcountries
Locale::SubCountry
Types
Sah: Sah::Schema::country::code, Sah::Schema::country::code::alpha2,
Sah::Schema::country::code::alpha3.
Moose: MooseX::Types::Locale::Country,
lib/Acme/CPANModules/CountryCodes.pm view on Meta::CPAN
since perl 5.14 (Locale::Country from 5.8) and they support converting between
English country names and 2-letter- and 3-letter ISO country codes, and retired
codes. If you need to squeeze some milliseconds of loading time, you can use
<pm:Locale::Codes::Country_Codes> directly.
## Multilingual
There are some modules for non-English country names, e.g.
<pm:Locale::Codes::Country::FR> (for French). There is also
<pm:Locale::Country::Multilingual> to map ISO codes to localized country names.
## Subcountries
<pm:Locale::SubCountry>
## Types
Sah: <pm:Sah::Schema::country::code>, <pm:Sah::Schema::country::code::alpha2>,
lib/Acme/CPANModules/CountryCodes.pm view on Meta::CPAN
L<Locale::Codes> now) should be your first go-to module. They are core modules
since perl 5.14 (Locale::Country from 5.8) and they support converting between
English country names and 2-letter- and 3-letter ISO country codes, and retired
codes. If you need to squeeze some milliseconds of loading time, you can use
L<Locale::Codes::Country_Codes> directly.
=head2 Multilingual
There are some modules for non-English country names, e.g.
L<Locale::Codes::Country::FR> (for French). There is also
L<Locale::Country::Multilingual> to map ISO codes to localized country names.
=head2 Subcountries
L<Locale::SubCountry>
=head2 Types
Sah: L<Sah::Schema::country::code>, L<Sah::Schema::country::code::alpha2>,
L<Sah::Schema::country::code::alpha3>.
t/00-compile.t view on Meta::CPAN
use IO::Handle;
open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
my @warnings;
for my $lib (@module_files)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my $stderr = IO::Handle->new;
diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} }
$^X, @switches, '-e', "require q[$lib]"))
if $ENV{PERL_COMPILE_TEST_DEBUG};
my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q[$lib]");
binmode $stderr, ':crlf' if $^O eq 'MSWin32';
my @_warnings = <$stderr>;
waitpid($pid, 0);
is($?, 0, "$lib loaded ok");
shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/
( run in 0.682 second using v1.01-cache-2.11-cpan-49f99fa48dc )