I'm trying to read .xlsx file in Spreadsheet::ParseXLSX
#!/home/bin/perl
use strict;
use warnings;
use Spreadsheet::ParseXLSX;
my $oExcel = new Spreadsheet::ParseExcel;
die "You must provide a filename to $0 to be parsed as an Excel file"
unless @ARGV;
my $oBook = $oExcel->Parse($ARGV[0]);
my($iR, $iC, $oWkS, $oWkC);
print "FILE :", $oBook->{File} , "\n";
print "COUNT :", $oBook->{SheetCount} , "\n";
print "AUTHOR:", $oBook->{Author} , "\n" if defined $oBook->{Author};
When I execute the perl, then I got the message as below,
Use of uninitialized value in print at conv2xlsxml.pl line 64.
FILE :
Use of uninitialized value in print at conv2xlsxml.pl line 65.
COUNT :
How do I correctly access excel file in Spreadsheet::ParseXLSX ?