adamsj has asked for the wisdom of the Perl Monks concerning the following question:
However, when I do this:
I'm getting this message: Can't call method "Value" on an undefined value at spacebase.pl line 36.for (my $row = 0; $row <= $tdb->{MaxRow}; $row++) { my $cell = $tdb->{Cells}[$row][0]; my $value = $cell->Value; print FH "$value\n"; }
MaxRow is giving back a value higher than the actual maximum row value. Now, I've come up with a workaround--I'll just wrap my $value = $cell->Value; in an eval and use that to terminate the loop, which is a good idea for other reasons--but I'm curious whether anyone else has experience with this module and knows what might be going on. My guess is that the module is returning a valid number and my spreadsheet is goofy--any other thoughts?
They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spreadsheet::ParseExcel MaxRow giving funky results
by dvergin (Monsignor) on Jul 13, 2001 at 20:45 UTC | |
|
Re: Spreadsheet::ParseExcel MaxRow giving funky results
by dvergin (Monsignor) on Jul 13, 2001 at 19:59 UTC | |
by adamsj (Hermit) on Jul 13, 2001 at 20:14 UTC |