Hey there

 

I'm a first time Mason user and I have a small question to ask.

 

my $interp = HTML::Mason::Interp->new( data_dir =>
'/usr/local/apache2/mason');

my $compiler =  HTML::Mason::Compiler->new();

$compiler->allow_globals => [qw($session $cookies $dbh $sth $sth2 $ref)];

$interp->exec('/home/app/public_html/bigtip2/session.pl');

 

Now from inside the session.pl I cannot access the predefined global
variables.

What options do I have ?

Is there a special way to load them from inside the called script ?

 

I require my core(the above) script to be in standard mod_perl form but the
building blocks(components) are indeed in Mason format.

 

Thanks.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to