Announce: Spreadsheet::ParseExcel version 0.56

26 views
Skip to first unread message

jmcnamara

unread,
Dec 10, 2009, 7:49:48 AM12/10/09
to Spreadsheet::ParseExcel
Hi,

Spreadsheet::ParseExcel version 0.56 has been uploaded to CPAN.
http://search.cpan.org/~jmcnamara/Spreadsheet-ParseExcel/

The main changes in this release is the addition of error handling
when parse() fail

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

if ( !defined $workbook ) {
die $parser->error(), ".\n";
}


The parsing errors that are handled are:

error() error_code()
======= ============
'' 0
'File not found' 1
'No Excel data found in file' 2
'File is encrypted' 3

The last one is particularly useful since previously if you tried to
parse an encrypted file you could run out of memory.

See the error* sections of the docs for more information.

Download:
http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/Spreadsheet-ParseExcel-0.56.tar.gz.

Changelog:
http://search.cpan.org/src/JMCNAMARA/Spreadsheet-ParseExcel-0.56/Changes

John.
--
Reply all
Reply to author
Forward
0 new messages