Finance::Currency::Convert module can convert currencies and fetch their exchange rates (with Finance::Quote).
SYNOPSIS
use Finance::Currency::Convert;
my $converter = new Finance::Currency::Convert;
$amount_euro = $converter->convert(100, "DEM", "EUR");
$amount_euro = $converter->convertToEUR(100, "DEM");
$amount_dem = $converter->convertFromEUR(100, "DEM");
$converter->updateRates("EUR", "DEM", "USD");
$converter->updateRate("DEM", "USD");
$converter->setRatesFile(".rates");
$converter->writeRatesFile();
This module converts currencies. It has built in the fixed exchange rates for all Euro currencies (as of November 2000). If you wish to use other / more currencies, you can automatically fetch their exchange rates from the internet and (optionally) store them in a file for later reference.
Use this module if you have large volumes of currency data to convert. Using the exchange rates from memory makes it a lot faster than using Finance::Quote directly and will save you the duty of storing the exchange rates yourself.
CURRENCY SYMBOLS
Finance::Currency::Convert uses the three character ISO currency codes used by Finance::Quote. Here is a list of currency codes.
Currencies with built-in rates (complete):
EUR Euro
ATS Austrian Schilling
BEF Belgiam Franc
DEM German Mark
ESP Spanish Peseta
FIM Finnish Mark
FRF French Franc
GRD Greek Drachma
IEP Irish Punt
ITL Italian Lira
LUF Luxembourg Franc
NLG Dutch Guilder
PTE Portuguese Escudo
Other currencies (incomplete):
AUD Australian Dollar
CHF Swiss Franc
HKD Hong Kong Dollar
JPY Japanese Yen
USD US Dollar
Product's homepage
Requirements:
· Perl