in reply to Variable will not stay shared in a sporadically crashing CGI
Apache resp. mod_perl is wrapping your CGI script in a subroutine to repeatedly call it. This also explains why you have the problem with the "global" lexical $cgi.
Your workaround of explicitly passing around the variable is a good one in my opinion.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Variable will not stay shared in a sporadically crashing CGI
by Anonymous Monk on Oct 02, 2017 at 13:34 UTC | |
by haukex (Archbishop) on Oct 02, 2017 at 13:38 UTC | |
by LanX (Saint) on Oct 02, 2017 at 14:02 UTC | |
by Anonymous Monk on Oct 02, 2017 at 13:48 UTC | |
by haukex (Archbishop) on Oct 02, 2017 at 13:53 UTC |