App-ListCurrencies
view release on metacpan or search on metacpan
lib/App/ListCurrencies.pm view on Meta::CPAN
=item * Example #1:
list_currencies(query => "rup"); # -> ["IDR", "INR", "LKR", "MUR", "NPR", "PKR", "SCR"]
=item * Example #2:
list_currencies(query => "rup", detail => 1);
Result:
[
{ alpha => "IDR", en_name => "Rupiah" },
{ alpha => "INR", en_name => "Indian Rupee" },
{ alpha => "LKR", en_name => "Sri Lanka Rupee" },
{ alpha => "MUR", en_name => "Mauritius Rupee" },
{ alpha => "NPR", en_name => "Nepalese Rupee" },
{ alpha => "PKR", en_name => "Pakistan Rupee" },
{ alpha => "SCR", en_name => "Seychelles Rupee" },
]
=back
Source data is generated from C<Locale::Codes::Currency_Codes>. so make sure you
have a relatively recent version of the module.
This function is not exported.
Arguments ('*' denotes required arguments):
=over 4
=item * B<alpha> => I<str>
Only return records where the 'alpha' field equals specified value.
=item * B<alpha.contains> => I<str>
Only return records where the 'alpha' field contains specified text.
=item * B<alpha.in> => I<array[str]>
Only return records where the 'alpha' field is in the specified values.
=item * B<alpha.is> => I<str>
Only return records where the 'alpha' field equals specified value.
=item * B<alpha.isnt> => I<str>
Only return records where the 'alpha' field does not equal specified value.
=item * B<alpha.max> => I<str>
Only return records where the 'alpha' field is less than or equal to specified value.
=item * B<alpha.min> => I<str>
Only return records where the 'alpha' field is greater than or equal to specified value.
=item * B<alpha.not_contains> => I<str>
Only return records where the 'alpha' field does not contain specified text.
=item * B<alpha.not_in> => I<array[str]>
Only return records where the 'alpha' field is not in the specified values.
=item * B<alpha.xmax> => I<str>
Only return records where the 'alpha' field is less than specified value.
=item * B<alpha.xmin> => I<str>
Only return records where the 'alpha' field is greater than specified value.
=item * B<detail> => I<bool> (default: 0)
Return array of full records instead of just ID fields.
By default, only the key (ID) field is returned per result entry.
=item * B<en_name> => I<str>
Only return records where the 'en_name' field equals specified value.
=item * B<en_name.contains> => I<str>
Only return records where the 'en_name' field contains specified text.
=item * B<en_name.in> => I<array[str]>
Only return records where the 'en_name' field is in the specified values.
=item * B<en_name.is> => I<str>
Only return records where the 'en_name' field equals specified value.
=item * B<en_name.isnt> => I<str>
Only return records where the 'en_name' field does not equal specified value.
=item * B<en_name.max> => I<str>
Only return records where the 'en_name' field is less than or equal to specified value.
=item * B<en_name.min> => I<str>
Only return records where the 'en_name' field is greater than or equal to specified value.
=item * B<en_name.not_contains> => I<str>
Only return records where the 'en_name' field does not contain specified text.
=item * B<en_name.not_in> => I<array[str]>
Only return records where the 'en_name' field is not in the specified values.
=item * B<en_name.xmax> => I<str>
Only return records where the 'en_name' field is less than specified value.
=item * B<en_name.xmin> => I<str>
Only return records where the 'en_name' field is greater than specified value.
=item * B<fields> => I<array[str]>
Select fields to return.
=item * B<query> => I<str>
Search.
=item * B<random> => I<bool> (default: 0)
Return records in random order.
=item * B<result_limit> => I<int>
Only return a certain number of records.
=item * B<result_start> => I<int> (default: 1)
Only return starting from the n'th record.
=item * B<sort> => I<array[str]>
Order records according to certain field(s).
A list of field names separated by comma. Each field can be prefixed with '-' to
specify descending order instead of the default ascending.
=item * B<with_field_names> => I<bool>
Return field names in each record (as hash/associative array).
When enabled, function will return each record as hash/associative array
(field name => value pairs). Otherwise, function will return each record
as list/array (field value, field value, ...).
=back
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code
(200 means OK, 4xx caller error, 5xx function error). Second element
(msg) is a string containing error message, or 'OK' if status is
200. Third element (payload) is optional, the actual result. Fourth
element (meta) is called result metadata and is optional, a hash
that contains extra information.
Return value: (any)
=head1 HOMEPAGE
( run in 0.472 second using v1.01-cache-2.11-cpan-5b529ec07f3 )