Mario, (are you one of the Mario bros?) In modperl, scripts do not terminate once completed. This is for performance reasons. Even the die() function has been overloaded to avoid this. As such your global variables will remain initialised at the start of the next HTTP call.
Take a look at: http://perl.apache.org/docs/1.0/guide/porting.html For a list of things to be aware of when porting CGI to modperl. Not much work, and it's definately worth the effort. Mario R. Sanchez, Ph.D. wrote: > hello perl gurus > > what is the proper way for a perl program to end when used in a apache > configuration w/mod_perl? > > use CGI qw(:standard); > use DBI; > > these are my only use ... > > before mod_perl everything worked fine. servers were upgraded to mod_perl > and all the scripts now seem to maintain values from previous invocations > - even if those variables are re-initialized.... > > i've tried &Apache::exit - doesnt work. always had exit; as the last line. > > i suspect its how i'm exiting - but maybe not. > > any help would be greatly greatly appreciated. > > thank you > > > _______________________________________________ > ActivePerl mailing list > ActivePerl@listserv.ActiveState.com > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs