Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by LanX (Saint)
on Oct 02, 2017 at 12:58 UTC ( [id://1200520]=note: print w/replies, xml ) Need Help??


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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1200520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found