Locale::Object::Currency::Converter 0.74 review
Download
|
|
Locale::Object::Currency::Converter is a Perl module that can convert between currencies.
Locale::Object::Currency::Converter allows you to convert between values of currencies represented by Locale::Object::Currency objects.
SYNOPSIS
use Locale::Object::Currency;
use Locale::Object::Currency::Converter;
my $usd = Locale::Object::Currency->new( code => 'USD' );
my $gbp = Locale::Object::Currency->new( code => 'GBP' );
my $eur = Locale::Object::Currency->new( code => 'EUR' );
my $jpy = Locale::Object::Currency->new( code => 'JPY' );
my $converter = Locale::Object::Currency::Converter->new(
from => $usd,
to => $gbp,
service => 'XE'
);
my $result = $converter->convert(5);
my $rate = $converter->rate;
my $timestamp = $converter->timestamp;
print $converter->use_xe;
print $converter->use_yahoo;
$converter->from($eur);
$converter->to($jpy);
$converter->service('Yahoo');
$converter->refresh;
Requirements:
Perl
Finance::Currency::Convert::XE
Finance::Currency::Convert::Yahoo
Locale::Object::Currency::Converter 0.74 search tags