Your skill will accomplish what the force of many cannot |
|
PerlMonks |
How Do You Call a Non-Exported Function from a Module?by socrtwo (Sexton) |
on Apr 10, 2009 at 22:07 UTC ( [id://756926]=perlquestion: print w/replies, xml ) | Need Help?? |
socrtwo has asked for the wisdom of the Perl Monks concerning the following question: I have abandoned my silly script from before since I found there is an xls2csv function in the Spreadsheet::XLSX::Utility module. Thanks for putting up with the previous post. Question: I'm trying to call the xls2csv function from this module but it is unexported. How does one do this properly? Right now I'm getting the error: "Tk::Error: Undefined subroutine &main::xls2csv called at name of my script.pl line 33." I found what I thought was an answer on the Web so I tried defining the function as "Spreadsheet::XLSX::Utility::xls2csv" but that gave me basically the same error:"Tk::Error: Undefined subroutine &Spreadsheet::XLSX::Utility::xls2csv name of my script.pl line 33. Thanks in advance. Short script is below.
Back to
Seekers of Perl Wisdom
|
|