|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Sharing Global variables between scriptsby gjb (Vicar) |
| on Apr 16, 2004 at 17:52 UTC ( [id://345885]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Given the other responses I may be way off, but my impression is that you want to accomplish the following:
What you want to accomplish is the notion of a session, i.e. several interactions with a webserver that maintains the state between those interactions. The simplest way to do this is to embed the values of the variables you want to preserve in the HTML code the first script generates using hidden input fields. This is quick & dirty, hard to maintain and unsafe. Another way is to store those values in cookies on the client with all drawbacks associated with the use of cookies. Yet another is to use some session framework such as CGI::Application which is quite mature but might be intimidating at first. The "right thing to do" depends strongly on the type of job you've at your hands. Just my 2 cents, -gjb-
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||