Thanks I reread the last link and noticed what I didnt' see before. Now my next question...
I use the following to access the cgi vars.. %Q = $r->method eq 'POST' ? $r->content : $r->args; If I make %Q a package global, will the above line re initialize %Q every time the program is run, or do I need to do some kind of foreach iteration through %Q and undefine everything first? ----- Original Message ----- From: "Stas Bekman" <[EMAIL PROTECTED]> To: "Chris Ochs" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, December 16, 2003 10:32 AM Subject: Re: use vars question > Chris Ochs wrote: > > I'm still a little unclear after reading the appropriate perl docs, or maybe > > just want to make sure I understand it correctly. > > It usually helps to tell what appropriate docs have you read. > http://perl.apache.org/docs/1.0/guide/porting.html#Global_Variables_Persistence > > It's also mentioned in several places at: > http://perl.apache.org/docs/general/perl_reference/perl_reference.html > > Brian has patched recently this docs explaining how to use 'local our' to have > globals automatically getting undefined at the end of the enclosing scope. > http://perl.apache.org/docs/general/perl_reference/perl_reference.html#Remedies_for_Inner_Subroutines > > > If I declare some package globals with use vars(), will the values be > > persistant in mod_perl, or will they go undefined after the code is done > > executing? > > persistent, yes. Undefined, no. > > __________________________________________________________________ > Stas Bekman JAm_pH ------> Just Another mod_perl Hacker > http://stason.org/ mod_perl Guide ---> http://perl.apache.org > mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com > http://modperlbook.org http://apache.org http://ticketmaster.com > > > -- > Reporting bugs: http://perl.apache.org/bugs/ > Mail list info: http://perl.apache.org/maillist/modperl.html > > -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html