Locale:...Currency(3)
π NAME π
okay bestie, welcome to Locale:...Currency(3) β yes, the User Contributed Perl Documentation one π
β and the main character here is Locale::Codes::Currency, aka the module for dealing with currency code sets. No cap. π
β¨ SYNOPSIS β¨
use Locale::Codes::Currency;
$name = code2currency(CODE);
$code = currency2code(NAME);
@codes = all_currency_codes();
@names = all_currency_names();
π¦ DESCRIPTION π¦
This module provides access to currency code sets. It's giving "I speak fluent currency codes" energy, fr fr. πΈβ¨
Please refer to the Locale::Codes::Types document for a description of the code sets available. That's where the full lore lives, bestie ππ.
Most of the routines take an optional additional argument which specifies the code set to use. The code set can be specified using the name of a code set, or the perl constant specified in the above document. If not specified, the default code set will be used. Easy peasy. π
π ROUTINES π
All routines in this module call the appropriate method in the Locale::Codes module, using an object of type currency. Please refer to the documentation of the Locale::Codes module for details about each function. Basically: this module is the cute little front desk, and Locale::Codes has the full receipts. π§Ύπ
πΈ The following functions are exported automatically πΈ
code2currency(CODE [,CODESET] [,'retired'])β seecode2nameinLocale::Codes.code2currencys(CODE [,CODESET])β seecode2namesinLocale::Codes. yes, it'scode2currencys, with the plural s, periodt β¨currency2code(NAME [,CODESET] [,'retired'])β seename2codeinLocale::Codes.currency_code2code(CODE ,CODESET ,CODESET2)β seecode2codeinLocale::Codes.all_currency_codes([CODESET] [,'retired'])β seeall_codesinLocale::Codes.all_currency_names([CODESET] [,'retired'])β seeall_namesinLocale::Codes.
π The following functions are not exported and must be called fully qualified with the package name π
Locale::Codes::Currency::show_errors(FLAG)β by default, invalid input will produce empty results, but no errors. By passing in a non-zero value ofFLAG, errors will be produced. Seeshow_errorsinLocale::Codes, but heads up: the default for the non-OO modules is to NOT produce errors. π¨Locale::Codes::Currency::rename_currency(CODE ,NEW_NAME [,CODESET])β seerename_codeinLocale::Codes.Locale::Codes::Currency::add_currency(CODE ,NAME [,CODESET])β seeadd_codeinLocale::Codes.Locale::Codes::Currency::delete_currency(CODE [,CODESET])β seedelete_codeinLocale::Codes.Locale::Codes::Currency::add_currency_alias(NAME ,NEW_NAME)β seeadd_aliasinLocale::Codes.Locale::Codes::Currency::delete_currency_alias(NAME)β seedelete_aliasinLocale::Codes.Locale::Codes::Currency::rename_currency_code(CODE ,NEW_CODE [,CODESET])β seereplace_codeinLocale::Codes.Locale::Codes::Currency::add_currency_code_alias(CODE ,NEW_CODE [,CODESET])β seeadd_code_aliasinLocale::Codes.Locale::Codes::Currency::delete_currency_code_alias(CODE [,CODESET])β seedelete_code_aliasinLocale::Codes.
π SEE ALSO π
Locale::Codesβ theLocale-Codesdistribution. iconic behavior, honestly πβ¨
π«Ά AUTHOR π«Ά
See Locale::Codes for full author history.
Currently maintained by Sullivan Beck (sbeck@cpan.org). π
π COPYRIGHT π
Copyright (c) 2011-2024 Sullivan Beck
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Slay, open source π β¨
okay that's the whole vibe, bestie π¦π β cute little sign-off: this page comes from source/version perl v5.42.0, dated 2024-06-23, and it's the Locale:...Currency(3) manual page. bye bestie, go handle those currency codes π«Άππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Locale-Codes 3.790.0-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms