I'm getting the following error:
Can't locate object method "Worksheet" via package
Spreadsheet::ParseExcel::Workbook" at
create-prepare-import.pl line
30.
when using $workbook->Worksheet() method.
Summary of simple code:
my $parser = Spreadsheet::ParseExcel->new();
my $workbook = $parser->Parse('ATB.xls');
my $sheetcount = $workbook->{SheetCount};
print "sheetcount:$sheetcount\n"; # I get a correct value
here
my $worksheet = $workbook->Worksheet('New Mapping'); #This is
the line I'm getting error on.
Do you see anything wrong with the code? How can I check that the
Worksheet method is available in my installation?
I have also tried $workbook->worksheets, which also is not working for
me.
Thanks for any help.
Anne