On Sun, Apr 20, 2008 at 1:55 PM, Perrin Harkins <[EMAIL PROTECTED]> wrote:
> On Sun, Apr 20, 2008 at 12:22 PM, David Haynes <[EMAIL PROTECTED]>
> wrote:
> > use XXX::TestCode;
> > my $result = TestCode();
> >
> > The XXX::TestCode is a perl module but not a class and the TestCode() is
> a
> > sub within the TestCode.pm file. It returns a simple scalar value (a
> > string).
>
> Unless XXX::TestCode exports a sub called TestCode, that will not
> work. To call a sub named TestCode inside that module without
> exporting it, you need to say XXX::TestCode::TestCode().
>
> - Perrin
>
I have tried exporting the sub and that is still not working.
I am beginning to suspect that the 'use' is not being resolved and that is
Mason cannot find the sub.
Does anyone have any advice to prove/disprove this?
I am running the Apache 2 server with mod_perl.
-david-
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users