Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
However , when I use the above module subroutine in my perl script I get an error as :sub xls_conv($) { use Spreadsheet::ParseExcel; my $oExcel = new Spreadsheet::ParseExcel; my $excelfileis = $self->{filename}; my $oBook = $oExcel->Parse("$excelfileis"); for(my $iSheet=0; $iSheet < $oBook->{SheetCount}; $iSheet++) { print "$oBook->{SheetCount}"; } }
Line 149 refers to theUse of uninitialized value in numeric lt (<) at /usr/lib/perl5/site_pe +rl/5.8.1/Converter.pm line 149.
.for(my $iSheet=0; $iSheet < $oBook->{SheetCount}; $iSheet++)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl module problem
by liz (Monsignor) on Dec 21, 2003 at 12:25 UTC | |
|
Re: Perl module problem
by TomDLux (Vicar) on Dec 21, 2003 at 15:08 UTC | |
|
Re: Perl module problem
by ysth (Canon) on Dec 21, 2003 at 17:35 UTC | |
|
Re: Perl module problem
by djantzen (Priest) on Dec 21, 2003 at 20:31 UTC | |
by ysth (Canon) on Dec 21, 2003 at 21:55 UTC | |
by djantzen (Priest) on Dec 22, 2003 at 02:20 UTC | |
|
Re: Perl module problem
by Roger (Parson) on Dec 22, 2003 at 01:25 UTC |