RE: Global variables in autohandler

Ramprabhu K <[email protected]> Fri, 22 Jul 2005 13:05:38 +0530
Newsgroups gmane.comp.web.mason.devel
Message-ID <21A58E79E7A8D411813B00508B5556B405D6F2F4@banexs01>
Hi
You can make a variable behave globally in mason handler.
 
Try the below method to declare it globally.
 
    my $dbh;
    local *HTML::Mason::Commands::dbh = \$dbh;
 
-Ram


**************************************************************************
This message contains Confidential Information of Genisys Group and may 
be a communication privileged by law. Please refrain from duplication or 
dissemination of the message content beyond the identified recipients. 
In the event you have received this message in error, please immediately 
destroy it and notify the sender identified above. 

Thank you for your cooperation

**************************************************************************