Click here to get back home

WriteExcel->sheets() fails to get the worksheets

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
WriteExcel->sheets() fails to get the worksheets Anand 05-05-2008
Posted by Anand on May 5, 2008, 7:36 pm
Please log in for more thread options
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. 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

Thanks,
Anand.

Similar ThreadsPosted
Limit on number of worksheets using SimpleExcel module April 4, 2007, 5:22 pm
problem of copying individual worksheets in separate workbook June 26, 2007, 7:26 am
Constant.t fails 240 of 272 tests and recurs.t fails 1 of 25 tests on HPUX using perl 5.8.7 December 8, 2005, 9:16 am
-e fails sometimes March 31, 2006, 2:57 pm
system fails January 11, 2005, 9:46 am
TEST Fails. December 2, 2005, 5:03 am
my and eval - '\@$n' fails April 4, 2006, 2:36 pm
Net::SMTP fails May 7, 2008, 11:01 am
Perl fails with out of memory August 6, 2004, 4:42 pm
First attempt at a module fails December 2, 2004, 6:26 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap