WriteExcel->sheets() fails in getting worksheets

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am trying to read an excel file usign the writeexcel. Following is
the code-snippet:
     my $workbook = Spreadsheet::WriteExcel->new('Temp.xls');

    print "Cannot create Temp.xls: $!\n" if (not defined $workbook);

    foreach $worksheet ($workbook->sheets()) {
       print "Worksheet Name is: ".$worksheet->get_name()."\n";

The file Temp.xls is already existing in the directory. There are four
distinct worksheets in the workbook. I want to further modify the
worksheets. However, the sheets() method itself is not working.
What might be the reason? I'm using perl 5.8


Re: WriteExcel->sheets() fails in getting worksheets

In article

Quoted text here. Click to load it

You asked the same question two minutes ago in comp.lang.perl.misc.
Please do not post the same question independently to more than one
newsgroup. If you must, cross-post your question to multiple
newsgroups, but do it simultaneously. If you can't figure out how to do
that using Google Groups, find a decent news reader and provider.


Jim Gibson

 Posted Via Usenet.com Premium Usenet Newsgroup Services

Site Timeline