in reply to Re^3: How Do You Call a Non-Exported Function from a Module?
in thread How Do You Call a Non-Exported Function from a Module?
The xls2csv line is now just:use Spreadsheet::XLSX::Utility2007;
It doesn't error there anymore, so I guess that means it is exporting the xls2csv function, but now I get this error: "Tk::Error: Can't locate object method "new" via package "Spreadsheet::XLSX" at C :/strawberry/perl/site/lib/Spreadsheet/XLSX/Utility2007.pm line 952."my $sCsvTxt = xls2csv($sFileName, $sRegion, $iRotate);
I guess that means something is wrong with either Spreadsheet/XLSX.pm or Spreadsheet/XLSX/Utility2007.pm or am I missing something or is my installation corrupt?
***Update*** I used my Vanilla Perl installation instead of my Strawberry one by changing the Path in Windows. I then reinstalled Spreadsheet::XLSX and I'm still getting the same error. Is new perhaps a function being erroneously called as a method?
|
|---|