in reply to Re: Re: Trouble Exporting a Function
in thread Trouble Exporting a Function
I'm sorry, but that's not related to the error he gets (and neither is his snippet).His error is
His problem is that testMod() is not being imported into main. Calling import() explicitly does this when CART::Validate is in the same file. Now if that is module code is separated into a file of it's own then it'll work as expected when useed() as the import call did the job the first time thanks to Exporter code.Undefined subroutine &main::testMod called at C:\path\path\modtest.pl +line
Or have I totally misread the question, the error and the code presented?
HTH
_________
broquaint
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Trouble Exporting a Function
by PodMaster (Abbot) on Mar 13, 2003 at 16:11 UTC |