Subject: | GoldMoney.pm gold quote fix |
1. When the price of gold rose above $1,000/oz, GoldMoney.pm stopped
delivering the correct quote, due to the existence of the comma on the
goldmoney web page. To fix this, the lines:
$_ = $table_gold->cell(0,0);
if( /(\d*\.\d*).*\/oz/ ) {
$gold_oz = $1;
should be modified to:
$_ = $table_gold->cell(0,0);
$_ =~ s/,//g;
if( /(\d*\.\d*).*\/oz/ ) {
$gold_oz = $1;
in order to delete the comma before processing the number.
2. The goldmoney web page gives its quotes in USD, so you should also
change the currency line to read:
$currency = 'USD';
(it is currently set to EUR).