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



Reply via email to