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

-------------------------------------------------------------------------
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

Reply via email to