Hi, Jim again,

I use strict as well, but in my httpd.conf I also have the line:

PerlAddVar MasonAllowGlobals $MyGlobalVar

Jim

On 02/01/07, Gareth Kirwan <[EMAIL PROTECTED]> wrote:

>Sorry about the glitch, anyway, as I was saying, I would
>probably add a global variable to httpd.conf and initialise it
>from my main autohandler to some value

Doesn't help the module with the lack of a MyGlobalVar, if strict is on.

>eg.
>     $MyGlobalVar = 1;
>
>then. in the shared module, I'd follow the statements with
>some condition like:
>
>     print .... if ( not defined $MyGlobalVar);

That doesn't do anything to store the output in a variable, though.
If you wanted to just stop the prints going out maybe localising STDOUT
might work in the mason?
However I assumed he wanted to actually capture the output.

G




--
Jim Rey
48 Laburnum Park
Bradshaw
Bolton BL2 3BU
United Kingdom
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to