in reply to Variable will not stay shared in a sporadically crashing CGI

"Won't stay shared" is the typical warning when "closures are redefined inside a sub"* and is related to mod-perl.

Keep in mind that mod-perl should make your code persistent and weird side effects are possible if the code is (not) recompiled.

Please habe a closer look into mod-perl tutorials and how to avoid pitfalls.

update

Eg see http://perl.apache.org/docs/1.0/guide/porting.html#Global_Variables_Persistence

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

*) roughly speaking, dunno how to phrase it better...

for details see replies to

  • Comment on Re: Variable will not stay shared in a sporadically crashing CGI (updated)