|XP is just a number|
Re: Sharing Global variables between scriptsby gjb (Vicar)
|on Apr 16, 2004 at 21:52 UTC||Need Help??|
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.
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-