in reply to Re: OUR declaration
in thread OUR declaration
When using our as an alternative to my in pseudo-CGI scripts that'll be running under mod_perl I recommend getting into the habit of using local our so that you get a pseudo "global destruction" at the end of the pseudo-CGI script.
Otherwise, if the declaration doesn't initialise, the value from a previous execution of the script may persist and also if there are any destruction side effects (like closing files) these may get deferred.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: OUR declaration
by perrin (Chancellor) on Sep 25, 2006 at 03:57 UTC | |
by sgifford (Prior) on Sep 25, 2006 at 05:54 UTC | |
by perrin (Chancellor) on Sep 25, 2006 at 15:34 UTC | |
by ikegami (Patriarch) on Sep 25, 2006 at 15:51 UTC | |
by perrin (Chancellor) on Sep 25, 2006 at 16:09 UTC | |
|
In Section
Seekers of Perl Wisdom