in reply to Finance::Quote giving weird error
The "50" in Ln 11 doesn't match anything I found with a quick scan of the POD for Finance::Quote. Is it an attempt to use eps or another of the module's allowed numeric arguments? If so, double-check syntax. Added: appears to be the value of $amount
And then (paraphrased Basic Debugging tip)...Try inserting print statements at Lns 27 and 30 (i.e. replace blank lines to keep Ln numbers aligned with your post) to see what's really happening:
print "\$ratio: $ratio, \t \$currency_from $currency_from, \t \$currency_to: $currency_to" You just may find the results helpful.
|
|---|