1Locale::Currency(3)   User Contributed Perl Documentation  Locale::Currency(3)
2
3
4

NAME

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

SYNOPSIS

9           use Locale::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::Currency" module provides access to standard codes used
19       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::Currency::rename_currency  ( CODE ,NEW_NAME [,CODESET] )
58       Locale::Currency::add_currency  ( CODE ,NAME [,CODESET] )
59       Locale::Currency::delete_currency  ( CODE [,CODESET] )
60       Locale::Currency::add_currency_alias  ( NAME ,NEW_NAME )
61       Locale::Currency::delete_currency_alias  ( NAME )
62       Locale::Currency::rename_currency_code  ( CODE ,NEW_CODE [,CODESET] )
63       Locale::Currency::add_currency_code_alias  ( CODE ,NEW_CODE [,CODESET]
64       )
65       Locale::Currency::delete_currency_code_alias  ( CODE [,CODESET] )
66           These routines are all documented in the Locale::Codes::API man
67           page.
68

SEE ALSO

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

AUTHOR

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