1Locale::Codes::CurrencyU(s3e)r Contributed Perl DocumentaLtoicoanle::Codes::Currency(3)
2
3
4

NAME

6       Locale::Codes::Currency - standard codes for currency identification
7

SYNOPSIS

9           use Locale::Codes::Currency;
10
11           $curr = code2currency('usd');     # $curr gets 'US Dollar'
12           $code = currency2code('Euro');    # $code gets 'eur'
13
14           @codes   = all_currency_codes();
15           @names   = all_currency_names();
16

DESCRIPTION

18       The "Locale::Codes::Currency" module provides access to standard codes
19       used for identifying currencies and funds, such as those defined in ISO
20       4217.
21
22       Most of the routines take an optional additional argument which
23       specifies the code set to use. If not specified, the default ISO 4217
24       three-letter codes will be used.
25

SUPPORTED CODE SETS

27       There are several different code sets you can use for identifying
28       currencies. A code set may be specified using either a name, or a
29       constant that is automatically exported by this module.
30
31       For example, the two are equivalent:
32
33          $curr = code2currency('usd','alpha');
34          $curr = code2currency('usd',LOCALE_CURR_ALPHA);
35
36       The codesets currently supported are:
37
38       alpha, LOCALE_CURR_ALPHA
39           This is a set of three-letter (uppercase) codes from ISO 4217 such
40           as EUR for Euro.
41
42           Two of the codes specified by the standard (XTS which is reserved
43           for testing purposes and XXX which is for transactions where no
44           currency is involved) are omitted.
45
46           This is the default code set.
47
48       num, LOCALE_CURR_NUMERIC
49           This is the set of three-digit numeric codes from ISO 4217.
50

ROUTINES

52       code2currency ( CODE [,CODESET] )
53       currency2code ( NAME [,CODESET] )
54       currency_code2code ( CODE ,CODESET ,CODESET2 )
55       all_currency_codes ( [CODESET] )
56       all_currency_names ( [CODESET] )
57       Locale::Codes::Currency::rename_currency  ( CODE ,NEW_NAME [,CODESET] )
58       Locale::Codes::Currency::add_currency  ( CODE ,NAME [,CODESET] )
59       Locale::Codes::Currency::delete_currency  ( CODE [,CODESET] )
60       Locale::Codes::Currency::add_currency_alias  ( NAME ,NEW_NAME )
61       Locale::Codes::Currency::delete_currency_alias  ( NAME )
62       Locale::Codes::Currency::rename_currency_code  ( CODE ,NEW_CODE
63       [,CODESET] )
64       Locale::Codes::Currency::add_currency_code_alias  ( CODE ,NEW_CODE
65       [,CODESET] )
66       Locale::Codes::Currency::delete_currency_code_alias  ( CODE [,CODESET]
67       )
68           These routines are all documented in the Locale::Codes::API man
69           page.
70

SEE ALSO

72       Locale::Codes
73           The Locale-Codes distribution.
74
75       Locale::Codes::API
76           The list of functions supported by this module.
77
78       http://www.iso.org/iso/support/currency_codes_list-1.htm
79           The ISO 4217 data.
80

AUTHOR

82       See Locale::Codes for full author history.
83
84       Currently maintained by Sullivan Beck (sbeck@cpan.org).
85
87          Copyright (c) 1997-2001 Canon Research Centre Europe (CRE).
88          Copyright (c) 2001      Michael Hennecke
89          Copyright (c) 2001-2010 Neil Bowers
90          Copyright (c) 2010-2013 Sullivan Beck
91
92       This module is free software; you can redistribute it and/or modify it
93       under the same terms as Perl itself.
94
95
96
97perl v5.16.3                      2013-02-27        Locale::Codes::Currency(3)
Impressum