5 Locale::Currency - standard codes for currency identification
11 $curr = code2currency('usd'); # $curr gets 'US Dollar'
12 $code = currency2code('Euro'); # $code gets 'eur'
14 @codes = all_currency_codes();
15 @names = all_currency_names();
20 The C<Locale::Currency> module provides access to standard codes used
21 for identifying currencies and funds, such as those defined in ISO 4217.
23 Most of the routines take an optional additional argument which
24 specifies the code set to use. If not specified, the default ISO
25 4217 three-letter codes will be used.
27 =head1 SUPPORTED CODE SETS
29 There are several different code sets you can use for identifying
30 currencies. The ones currently supported are:
36 This is a set of three-letter (uppercase) codes from ISO 4217 such
39 Two of the codes specified by the standard (XTS which is reserved
40 for testing purposes and XXX which is for transactions where no
41 currency is involved) are omitted.
43 This code set is identified with the symbol C<LOCALE_CURR_ALPHA>.
45 This is the default code set.
49 This is the set of three-digit numeric codes from ISO 4217.
51 This code set is identified with the symbol C<LOCALE_CURR_NUMERIC>.
59 =item B<code2currency ( CODE [,CODESET] )>
61 =item B<currency2code ( NAME [,CODESET] )>
63 =item B<currency_code2code ( CODE ,CODESET ,CODESET2 )>
65 =item B<all_currency_codes ( [CODESET] )>
67 =item B<all_currency_names ( [CODESET] )>
69 =item B<Locale::Currency::rename_currency ( CODE ,NEW_NAME [,CODESET] )>
71 =item B<Locale::Currency::add_currency ( CODE ,NAME [,CODESET] )>
73 =item B<Locale::Currency::delete_currency ( CODE [,CODESET] )>
75 =item B<Locale::Currency::add_currency_alias ( NAME ,NEW_NAME )>
77 =item B<Locale::Currency::delete_currency_alias ( NAME )>
79 =item B<Locale::Currency::rename_currency_code ( CODE ,NEW_CODE [,CODESET] )>
81 =item B<Locale::Currency::add_currency_code_alias ( CODE ,NEW_CODE [,CODESET] )>
83 =item B<Locale::Currency::delete_currency_code_alias ( CODE [,CODESET] )>
85 These routines are all documented in the Locale::Codes man page.
93 =item B<Locale::Codes>
95 =item B<Locale::Constants>
97 =item B<http://www.iso.org/iso/support/currency_codes_list-1.htm>
105 See Locale::Codes for full author history.
107 Currently maintained by Sullivan Beck (sbeck@cpan.org).
111 Copyright (c) 1997-2001 Canon Research Centre Europe (CRE).
112 Copyright (c) 2001 Michael Hennecke
113 Copyright (c) 2001-2010 Neil Bowers
114 Copyright (c) 2010-2010 Sullivan Beck
116 This module is free software; you can redistribute it and/or
117 modify it under the same terms as Perl itself.