We don't bite newbies here... much | |
PerlMonks |
Re: Variable will not stay shared in a sporadically crashing CGIby Corion (Patriarch) |
on Oct 02, 2017 at 12:54 UTC ( [id://1200518]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|