in reply to PERL can not open object method "AddCell" via package "Spreadsheet::ParseExcel::Workbook"


The AddCell() method is part of Spreadsheet::ParseExcel::SaveParser and not Spreadsheet::ParseExcel.

So you should really be doing something like the following:

... my $parser = Spreadsheet::ParseExcel::SaveParser->new(); my $template = $parser->Parse('test_result.xls'); ...

See the example at the previous link for more details.

--
John.

  • Comment on Re: PERL can not open object method "AddCell" via package "Spreadsheet::ParseExcel::Workbook"
  • Download Code