Re: reliability problem with Finance::QuoteHist::Yahoo



On Fri, 11 Jul 2008 21:53:53 -0700, Ted wrote:
I have been able to get this package to work sometimes. However,
invariably it fails on me part way through my script, after
downloading data for from one to four ticker symbols. The error is:

Can't use an undefined value as an ARRAY reference at C:/Perl/site/lib/
Finance/QuoteHist/Generic.pm line 863.

Line 863 of the current version of that module does not attempt an array
dereference. Consider upgrading.

I have no information about how an undefined value is being passed
deep
into the code of a package I didn't write. I took a quick look into
Generic.pm and yahoo.pm, but found no enlightenment so far (there's a
lot of code there).

Sometimes it arises when quotes() is executed, and at other times, it
occurs when dividends() is executed.

I have been using Finance::QuoteHiat::Yahoo nearly daily for several years
without once having a problem. There again, I do not call splits() or
dividends(). I also do not use 'today' as a date and I always use a
starting date that I know data exists for. Construct a minimal program
requiring no user inputs that fails every time and post it here. If the
problem were changes to the Yahoo format it is extremely unlikely that the
behavior would be nondeterministic. I think it more likely that the
behavior is consistent for a particular ticker symbol.

--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/

.