Hi all,
I'm having a problem fetching splits with Finance::QuoteHist-1.12. My actual code is long and gross and most of it irrelevant to this problem (or I would assume anyway). I get the same problem using the basic sample code in the module documentation:
use Finance::QuoteHist;
$q = Finance::QuoteHist->new
(
symbols => [qw(IBM UPS AMZN)],
start_date => '01/01/2008', # or 'one year ago', see Date::Manip
end_date => 'today',
);
# Quotes
foreach $row ($q->quotes()) {
($symbol, $date, $open, $high, $low, $close, $volume) = @$row;
}
# Splits
foreach $row ($q->splits()) {
($symbol, $date, $post, $pre) = @$row;
}
# Dividends
foreach $row ($q->dividends()) {
($symbol, $date, $dividend) = @$row;
}
# Culprit
$fetch_class = $q->quote_source('IBM');
Here is the error I get:
Use of uninitialized value $args[0] in join or string at /usr/local/Ac
+tivePerl-5.10/site/lib/Date/Manip.pm line 134.
Problem parsing date string ''
at splitTest.pl line 15
I'm not sure if this is an error on my part somehow or a glitch in the module, and I wanted to run it by the monks before submitting a bug report. Because I get the error with the module's sample code, I'm assuming it's not a problem with my own code but let me know if you feel it would be useful to post that too and I will. Thanks.