Subject: | use of uninitialized value in substitition in Finance::Quote::Generic |
I get the following warning when grabbing data from Yahoo:
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.8.3/Finance/QuoteHist/Generic.pm line 556.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.8.3/Finance/QuoteHist/Generic.pm line 557.
This appears around 5 times. It is related to Yahoo sending a footer that looks like this:
<!-- chart1.finance.scd.yahoo.com uncompressed Mon Apr 5 09:10:45 PDT 2004 -->
at the bottom of the CSV file.
You could get rid of this with a change line 871 to grep out lines that start with "<!--", but I don't know if that appropriate. There should be something placed in the Yahoo.pm file that pops off the footer if it was tacked on, though it doesn't look like there is a good place for that...