pankaj_it09 has asked for the wisdom of the Perl Monks concerning the following question:
The system output(error) is as below:use strict; use Spreadsheet::ParseExcel; my $parser = Spreadsheet::ParseExcel->new( CellHandler => \&cell_handler, NotSetCell => 1 ); my $workbook = $parser->Parse('testfile.xls'); sub cell_handler { my $workbook = $_[0]; my $sheet_index = $_[1]; my $row = $_[2]; my $col = $_[3]; my $cell = $_[4]; print $cell->unformatted(), "\n"; }
The system information is as below :D:\Perl\bin\search tool>perl testa.pl UTF-16 surrogate 0xdb79 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdbb1 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xd83e at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdff8 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdbff at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdd98 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xd9bf at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdcd7 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdde6 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdabe at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdb71 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xd912 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdab0 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. Unicode character 0xfdde is illegal at D:/Perl/site/lib/Spreadsheet/ ParseExcel/FmtDefault.pm UTF-16 surrogate 0xdc77 at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. substr outside of string at D:/Perl/site/lib/Spreadsheet/ParseExcel.pm + line 1015. Use of uninitialized value in length at D:/Perl/site/lib/Spreadsheet/ ParseExcel.pm line 1951. Use of uninitialized value $sTxt in unpack at D:/Perl/site/lib/ Spreadsheet/ParseExcel/FmtDefa substr outside of string at D:/Perl/site/lib/Spreadsheet/ParseExcel.pm + line 1020. UTF-16 surrogate 0xdeec at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. UTF-16 surrogate 0xdd7e at D:/Perl/site/lib/Spreadsheet/ParseExcel/ FmtDefault.pm line 81. substr outside of string at D:/Perl/site/lib/Spreadsheet/ParseExcel.pm + line 1196. Use of uninitialized value in unpack at D:/Perl/site/lib/Spreadsheet/ ParseExcel.pm line 1196. substr outside of string at D:/Perl/site/lib/Spreadsheet/ParseExcel.pm + line 1196. Use of uninitialized value in unpack at D:/Perl/site/lib/Spreadsheet/ ParseExcel.pm line 1196. Out of memory!
Perl version : 5.010000 OS name : MSWin32 Module versions: (not all are required) Spreadsheet::ParseExcel 0.49 Scalar::Util 1.19 Unicode::Map (not installed) Spreadsheet::WriteExcel (not installed) Parse::RecDescent (not installed) File::Temp 0.18 OLE::Storage_Lite 0.18 IO::Stringy 2.110
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Out of memory error while parsing a specific excel file
by Anonymous Monk on Feb 16, 2009 at 08:00 UTC | |
by pankaj_it09 (Scribe) on Feb 16, 2009 at 09:48 UTC | |
|
Re: Out of memory error while parsing a specific excel file
by gone2015 (Deacon) on Feb 16, 2009 at 12:47 UTC | |
by pankaj_it09 (Scribe) on Feb 17, 2009 at 06:01 UTC | |
by gone2015 (Deacon) on Feb 17, 2009 at 09:26 UTC | |
by pankaj_it09 (Scribe) on Feb 17, 2009 at 06:07 UTC | |
|
Re: Out of memory error while parsing a specific excel file
by jmcnamara (Monsignor) on Feb 18, 2009 at 13:32 UTC |