Karl Moens (karl.moens@marsh.com) is out of the office.

I will be out of the office starting 14/05/2007 and will not return until
21/05/2007.

In case of an emergency, please call our emergency telephone number +32 3
286 64 85.
For urgent matters, please contact one of my colleagues:
Sofie.Cappaert [at] marsh.com or Vincent.DeBacker [at] marsh.com or
Tanja.VanDamme [at] marsh.com

I may be monitoring my e-mail with my Blackberry, but cannot read all types
of attachments.



Thanks and best regards,





Karl MOENS
_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Karl.Moens [ Mo, 14 Mai 2007 21:02 ] [ ID #1712102 ]

perl_mod

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 [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Mario Sanchez [ Di, 15 Mai 2007 02:17 ] [ ID #1712825 ]

Re: perl_mod

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 [at] listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Foo JH [ Di, 15 Mai 2007 04:38 ] [ ID #1712826 ]

Re: perl_mod

This is a multipart message in MIME format.
--===============1553146783==
Content-Type: multipart/alternative;
boundary="=_alternative 004888FC862572DC_="

This is a multipart message in MIME format.
--=_alternative 004888FC862572DC_=
Content-Type: text/plain; charset="us-ascii"

>- even if those variables are re-initialized....

Dunno if this would help, but... have you tried undefining your variables?

undef( $var );

Just a thought.

Deane Rothenmaier
Programmer/Analyst
Walgreens Corp.
847-914-5150

Reality is whatever refuses to go away when I stop believing in it. --
Philip K. Dick
--=_alternative 004888FC862572DC_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">></font><font size=2 face="Courier New">- even if those variables are re-initialized....<br>
</font>
<br><font size=2 face="sans-serif">Dunno if this would help, but... have you tried undefining your variables?</font>
<br>
<br><font size=2 face="sans-serif">undef( $var );</font>
<br>
<br><font size=2 face="sans-serif">Just a thought.</font>
<br><font size=2 face="sans-serif"><br>
Deane Rothenmaier<br>
Programmer/Analyst<br>
Walgreens Corp.<br>
847-914-5150<br>
<br>
Reality is whatever refuses to go away when I stop believing in it. -- Philip K. Dick</font>
--=_alternative 004888FC862572DC_=--


--===============1553146783==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1553146783==--
Deane.Rothenmaier [ Di, 15 Mai 2007 15:12 ] [ ID #1712827 ]
Perl » gmane.comp.lang.perl.active-perl » Karl Moens (karl.moens@marsh.com) is out of the office.

Vorheriges Thema: is ppm behaving strangely??
Nächstes Thema: Plans for Perl 6