I have probably got myself confused somewhere along the way because what I
want to do sounds easy but I cannot get it to work.
What I want to do:
I have a block of mason code that I call via a URL.
The code consists of a <%perl> </%perl> block.
Inside this block is code similar to this:
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).
When I try to plumb all this together, I get a System error that Mason
cannot resolve the reference to the TestCode() sub function.
The actual message is:
Undefined subroutine &HTML::Mason::Commands::TestCode called at ...
So...
Is this a viable scenario for Mason?
If so, how should I have put it all together?
Will Mason only work with a native perl object? i.e. should this be
something like:
my $test_code = new TestCode();
my $result = $test_code->exec();
Thanks for any pointers.
-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