Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Reading XLS file using Perl

by hawtin (Prior)
on Feb 12, 2014 at 11:01 UTC ( #1074611=note: print w/replies, xml ) Need Help??


in reply to Reading XLS file using Perl

I don't use Spreadsheet::ParseExcel any more, so I can't answer your question. I can however tell you where you are going wrong (like it says line 9 the call to Spreadsheet/ParseExcel->new()), what is going wrong (the function is expecting to be passed arguments in pairs) and how to check (look at line 167 inthe file /usr/local/share/perl5/Spreadsheet/ParseExcel.pm)

The documentation (that I can see) says that you call the Spreadsheet::ParseExcel module like this

my $parser = Spreadsheet::ParseExcel->new(); my $workbook = $parser->parse('Book1.xls');

As others have mentioned you have some later mistakes as well, the 'worksheet' object returned by ParseExcel probably doesn't match the one needed by WriteExcel. So you have to unpick one and build up the other.

Replies are listed 'Best First'.
Re^2: Reading XLS file using Perl
by rammohan (Acolyte) on Feb 12, 2014 at 11:31 UTC
    Question is update please see once...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074611]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2018-07-17 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (368 votes). Check out past polls.

    Notices?