NAME
Finance::USDX - Compute USDX (US Dollar Index)
VERSION
Version 0.01
SYNOPSIS
use Finance::USDX;
# get "live" USDX using YAHOO finance values (through Finance::Quote)
my $usdx = usdx();
# compute USDX given specfic conversion rates
my $usdx = usdx(eurusd => 1.2976, usdjpy => 79.846,
gbpusd => 1.5947, usdcad => 0.9929,
usdsek => 6.6491, usdchf => 0.9331);
DESCRIPTION
Just exports an 'usdx' subroutine that returns the current USDX value.
usdx
If called without arguments, returns the "current" USDX value using data from YAHOO finance website, using Finance::Quote module.
If called with argument, then the hashtable must have six key/value pairs, with rates for currency convertion. Note that two of the keys are not usd->other convertions. All exact keys are required.
AUTHOR
Alberto Simões, <ambs at cpan.org>
BUGS
Please report any bugs or feature requests to bug-finance-usdx at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Finance-USDX. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Finance::USDX
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
Copyright 2012 Alberto Simões.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.