Running Perl as a CGI will *not* cache any variables (or anything else).
Each time the script is called the Perl executable will be started, and when
finished it will free all memory that it was using.  If you are using
mod_perl it is a little different.  mod_perl will cache a script (and any
modules used) in memory so that it starts up faster the next time it is
called, and it *can* cache variables if your code isn't written with
mod_perl in mind.

I hope that helps.

Rob

-----Original Message-----
From: Hal Vaughan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 11:27 PM
To: [EMAIL PROTECTED]
Subject: Submitting Form Passes Old Values


I've got what amounts to a control panel or preferences settings system that

uses HTML and perl scripts.  I'm running this on Mandrake Linux 8.2 with 
Apache 1.3.  I have two pages that interact with each other.  The 2nd page, 
the one I'm having problems with, has a number of checkboxes, drop down 
menus, and radio buttons.  The first time I press Submit, all the values 
are passed properly to the called perl script.  The problem comes in after 
that.  When I use this page again, (both second and later times) and press 
"Submit", the page passes all the form elements (or rather their values) 
again, but twice.  It keeps building, but I'm not sure if it adds another 
copy of all the values each time I submit the page or not.

In other words, I press submit once, I get one set of values, and am 
returned to a front page.  I go from the front page back to the page with 
the form and press submit again, and I get two sets of the same values.  I 
just keep getting more and more values.

How are these values staying in memory?  How can I purge them?

Thanks.

Hal


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to