Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How to declare global variable in CGI file?

by waswas-fng (Curate)
on Jun 28, 2005 at 14:50 UTC ( [id://470659]=note: print w/replies, xml ) Need Help??


in reply to Re: How to declare global variable in CGI file?
in thread How to declare global variable in CGI file?

If it is per session you may use a cookies and CGI::Session to tuck data away that is usable via all the cgi scripts that know about the session store. Else if you just want to load up default config vars in your cgi scripts you may use a require on each script that loads a config.pl file that has all of your global config vars present. If you just want to share a writable var between processes look at IPC::Shareable. Not very pretty -- but certainly doable.


-Waswas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-03-29 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found