Skip Menu |

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 61972
Status: new
Priority: 0/
Queue: Finance-Quote

People
Owner: Nobody in particular
Requestors: psa22 [...] drexel.edu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.17
Fixed in: (no value)



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).