1Locale::Codes::Country(U3s)er Contributed Perl DocumentatLioocnale::Codes::Country(3)
2
3
4

NAME

6       Locale::Codes::Country - module for dealing with country code sets
7

SYNOPSIS

9          use Locale::Codes::Country;
10
11          $name = code2country(CODE);
12          $code = country2code(NAME);
13
14          @codes   = all_country_codes();
15          @names   = all_country_names();
16

DESCRIPTION

18       This module provides access to country code sets.
19
20       Please refer to the Locale::Codes::Types document for a description of
21       the code sets available.
22
23       Most of the routines take an optional additional argument which
24       specifies the code set to use. The code set can be specified using the
25       name of a code set, or the perl constant specified in the above
26       document.  If not specified, the default code set will be used.
27

ROUTINES

29       All routines in this module call the appropriate method in the
30       Locale::Codes module, using an object of type: country Please refer to
31       the documentation of the Locale::Codes module for details about each
32       function.
33
34       The following functions are exported automatically:
35
36       code2country(CODE [,CODESET] [,'retired'])
37           See code2name in Locale::Codes
38
39       code2countrys(CODE [,CODESET])
40           See code2names in Locale::Codes
41
42       country2code(NAME [,CODESET] [,'retired'])
43           See name2code in Locale::Codes
44
45       country_code2code(CODE ,CODESET ,CODESET2)
46           See code2code in Locale::Codes
47
48       all_country_codes([CODESET] [,'retired'])
49           See all_codes in Locale::Codes
50
51       all_country_names([CODESET] [,'retired'])
52           See all_names in Locale::Codes
53
54       The following functions are not exported and must be called fully
55       qualified with the package name:
56
57       Locale::Codes::Country::show_errors(FLAG)
58           By default, invalid input will produce empty results, but no
59           errors.  By passing in a non-zero value of FLAG, errors will be
60           produced.
61
62           See show_errors in Locale::Codes but note that the default for the
63           non-OO modules are to NOT produce errors.
64
65       Locale::Codes::Country::rename_country(CODE ,NEW_NAME [,CODESET])
66           See rename_code in Locale::Codes
67
68       Locale::Codes::Country::add_country(CODE ,NAME [,CODESET])
69           See add_code in Locale::Codes
70
71       Locale::Codes::Country::delete_country(CODE [,CODESET])
72           See delete_code in Locale::Codes
73
74       Locale::Codes::Country::add_country_alias(NAME ,NEW_NAME)
75           See add_alias in Locale::Codes
76
77       Locale::Codes::Country::delete_country_alias(NAME)
78           See delete_alias in Locale::Codes
79
80       Locale::Codes::Country::rename_country_code(CODE ,NEW_CODE [,CODESET])
81           See replace_code in Locale::Codes
82
83       Locale::Codes::Country::add_country_code_alias(CODE ,NEW_CODE
84       [,CODESET])
85           See add_code_alias in Locale::Codes
86
87       Locale::Codes::Country::delete_country_code_alias(CODE [,CODESET])
88           See delete_code_alias in Locale::Codes
89

SEE ALSO

91       Locale::Codes
92           The Locale-Codes distribution.
93

AUTHOR

95       See Locale::Codes for full author history.
96
97       Currently maintained by Sullivan Beck (sbeck@cpan.org).
98
100          Copyright (c) 2011-2023 Sullivan Beck
101
102       This module is free software; you can redistribute it and/or modify it
103       under the same terms as Perl itself.
104
105
106
107perl v5.36.1                      2023-06-08         Locale::Codes::Country(3)
Impressum