Path to this page:
Subject: CVS commit: pkgsrc/finance/p5-Data-Currency
From: David Brownlee
Date: 2008-06-23 03:51:57
Message id: 20080623015157.A2219175D0@cvs.netbsd.org
Log Message:
Import p5-Data-Currency-0.04002
The 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.
Files: