Finance::Quote::IndiaMutual bugfix
I used GnuCash for a while and maybe I'll start using it again. A neat thing that one can do with it is to track one's portfolio. Stocks are easy (GnuCash can use Finance::Quote::Yahoo where NSE stocks have symbols ending in '.NS', and BSE stocks are numbers). Mutual funds in India do not have ticker symbols, but prices/NAV etc. can be obtained via the
Finance::Quote::IndiaMutual module, which fetches them from the
AMFI website.
To use the module, one can grab the code corresponding to the fund from the table at
http://amfiindia.com/downloadnavopen.asp and supply that to the module.
All that is fine, but there's a tiny regex bug in the module which chokes on many rows. The fix is trivially simple and the diff totals to
74c74
< my ($symbol, @data) = split /\;/;
---
> my ($symbol, @data) = split /\s*\;\s*/;
I hope that helps someone.