Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: How Do You Call a Non-Exported Function from a Module?

by socrtwo (Sexton)
on Apr 11, 2009 at 02:51 UTC ( [id://756967]=note: print w/replies, xml ) Need Help??


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?

Hi. Thanks to you all I have gotten a lot further. I changed the use statement to
use Spreadsheet::XLSX::Utility2007;
The xls2csv line is now just:
my $sCsvTxt = xls2csv($sFileName, $sRegion, $iRotate);
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."

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://756967]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found