I am trying to open two Excel .xls files for comparing. I included
use Spreadsheet::ParseExcel;
then, I continue my code as follow:
my $parser_r = Spreadsheet::ParseExcel->new();
my $resultbook = $parser_r->parse($absPathResult);
my $parser_i = Spreadsheet::ParseExcel->new();
my $resultideal = $parser_i->parse($absPathIdeal);
@worksheetsListResult = $resultbook->worksheets();
@worksheetsListIdeal = $resultideal->worksheets();
the first error I encountered was "can't locate object method "parser"...", but that was solved by changing "parser" to "Parser".
When I execute the script again, I am getting the error: can't locate object method "worksheets" via package "Spreadsheet::ParseExcel::Workbook".
I am running the script in Linux, Perl v5.8.5.
Any idea what is the possible problem here? I am new to Perl language. All comments are very much appreciated.
PS: When I run the similar code in Windows, everything is working perfectly.