in reply to Reading and storing a web page as a spreadsheet query

Using Perl Excel to read and store the figures from the web page that I needed. It would have been useful to store the spreadsheet as a spreadsheet so I used the line (see trial code below) $workbook -> SaveAs ($spsh_file);. The file name did include .xlsx as the extension. This did store the spreadsheet. However, when I tried to open it within Excel I was told that the file extension or format was not valid.

What exactly is "Perl Excel"?

If you're referring to the Spreadsheet::WriteExcel module (if so, why not call it by name?), it writes old-fashioned excel files, so give them a .xls extension, not .xlsx.

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re: Reading and storing a web page as a spreadsheet query

Replies are listed 'Best First'.
Re^2: Reading and storing a web page as a spreadsheet query
by merrymonk (Hermit) on Sep 17, 2010 at 10:03 UTC
    By Perl Excel I meant just the functions you get with when you 'say' (see the first lines of the code)
    use Win32::OLE::Const "Microsoft Excel";
    I am sorry if this obscured what I was asking.