Finance::USDX - Compute USDX (US Dollar Index)
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);
Just exports an 'usdx' subroutine that returns the current USDX value.
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.
Alberto Simões, <ambs at cpan.org>
<ambs at cpan.org>
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.
bug-finance-usdx at rt.cpan.org
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)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Finance-USDX
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Finance-USDX
CPAN Ratings
http://cpanratings.perl.org/d/Finance-USDX
Search CPAN
http://search.cpan.org/dist/Finance-USDX/
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.
To install Finance::USDX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::USDX
CPAN shell
perl -MCPAN -e shell install Finance::USDX
For more information on module installation, please visit the detailed CPAN module installation guide.