Finance-Currency-Convert-DnB
Finance::Currency::Convert::DnB uses a XML list from dnbnor.no to convert currencies Caches XML list in a temporary file for quick access.
USAGE
use Finance::Currency::Convert::DnB;
#get results with default number of decimals which is 2
$result = currency 20, "NOK", "GBP";
#3 decimals
$result = currency 20, "NOK", "GBP", 3;
#convert several numbers
$result = currency \@values, "NOK", "GBP";
$result = currency [20, 50, 35], "NOK", "GBP";
#store all results in a hash
my %all_currencies = currency 20, "NOK";
print "20 NOK in $ is $allcurrencies{$}\n" foreach (keys %allcurrencies);
#get a list of available currencies my @currencies = currencies;
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the perldoc command.
perldoc Finance::Currency::Convert::DnB
You can also look for information at:
Search CPAN
http://search.cpan.org/dist/Finance-Currency-Convert-DnB
CPAN Request Tracker:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Finance-Currency-Convert-DnB
AnnoCPAN, annotated CPAN documentation:
http://annocpan.org/dist/Finance-Currency-Convert-DnB
CPAN Ratings:
http://cpanratings.perl.org/d/Finance-Currency-Convert-DnB
COPYRIGHT AND LICENCE
Copyright (C) 2006 Thomas Martinsen
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.