Re: use vars question

2003-12-16 Thread Stas Bekman
Chris Ochs wrote: 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 progra

Re: use vars question

2003-12-16 Thread Chris Ochs
he 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: Tues

Re: use vars question

2003-12-16 Thread Ged Haywood
Hi there, On Tue, 16 Dec 2003, Chris Ochs wrote: > 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? They are global, so they persist until the death of the interpreter which executed thos

Re: use vars question

2003-12-16 Thread Stas Bekman
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 me