Subject: | Yahoo! Currency Converter Parameters Changed |
Distribution: Finance-Currency-Convert-Yahoo-0.043
Perl Version: 5.8.0
Operating System: Linux 2.2.17-RAID #1 SMP Wed Nov 22 21:49:12 CST 2000 i686 unknown
When running the following code:
#!/usr/local/bin/perl5.8.0
use strict;
my ($cad_price) = 100;
use Finance::Currency::Convert::Yahoo;
$Finance::Currency::Convert::Yahoo::CHAT = 1;
my ($usd_price) = Finance::Currency::Convert::Yahoo::convert($cad_price,'CAD','USD');
print "\nCurrency Converter\n";
print "$cad_price CAD = $usd_price USD\n";
I receive the following error:
Converting <100> from <CAD> to <USD> at Yahoo.pm line 125.
Attempt 0 ...
Attempting to access <http://finance.yahoo.com/currency/convert?amt=100&from=CAD&to=USD&submit=Convert> ...
...ok.
Use of uninitialized value in concatenation (.) or string at Yahoo.pm line 136.
Got doc, result is at Yahoo.pm line 136.
Connected to Yahoo but could not read the page: sorry at ./cc_test.cgi line 23
Currency Converter
100 CAD = USD
Checking the actual Yahoo! Finance page reveals that it is now using a different set of parameters to calculate the currency conversion results.