|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: Combining Excel Parser with Google Scholar Scraperby Nkuvu (Priest) |
| on Apr 14, 2009 at 18:41 UTC ( #757458=note: print w/ replies, xml ) | Need Help?? |
|
One thing I'm seeing in your Excel-handling Perl is that you never write to the spreadsheet, nor do you save the Excel file. When using Win32::OLE, opening a file opens it for read/write, so you don't have to do anything differently there. The other thing I'm not sure about is your inner foreach loop -- why is it there at all if you only have one column? Not wrong per se, just curious. Saving to Excel is really simple. Using kennethk's code (in this node), just add one line (with some surrounding lines to show location):
Then, of course, you'll want to call $Book->Save(); before you close the workbook.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||