Path to this page:
./
finance/p5-Data-Currency,
Container class for currency conversion/formatting
Branch: pkgsrc-2012Q1,
Version: 0.04002nb3,
Package name: p5-Data-Currency-0.04002nb3,
Maintainer: pkgsrc-usersThe Data::Currency module provides basic currency formatting and
conversion:
my $price = 1.23;
my $currency = Data::Currency->new($price);
print $currency->convert('CAD')->as_string;
Each Data::Currency object will stringify to the original value
except in string context, where it stringifies to the format
specified in format.
Required to run:[
lang/perl5] [
devel/p5-Class-Accessor-Grouped] [
devel/p5-Class-Inspector] [
devel/p5-Scalar-List-Utils] [
misc/p5-Locale-Codes] [
finance/p5-Locale-Currency-Format] [
finance/p5-Finance-Currency-Convert-WebserviceX]
Master sites: (Expand)
SHA1: e41ad3a8f2a9242c8ed2960ae6d7931c8f8e8409
RMD160: 770c0462108338124c27e16e3cc35eca7f3501e3
Filesize: 23.167 KB
Version history: (Expand)
- (2012-04-10) Package added to pkgsrc.se, version p5-Data-Currency-0.04002nb3 (created)