<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Yes, put simply.&nbsp; It's not up to Perl, it's depend on the web server configuration not the application.<br><br>-Darin<br><div>&nbsp;</div>Not a shred of evidence exists in favor of the idea that life is serious.<br>- Brendan Gill<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Neil Heller &lt;nheller@silcon.com&gt;<br>To: San Francisco Perl Mongers User Group &lt;sanfrancisco-pm@pm.org&gt;<br>Sent: Saturday, March 1, 2008 9:17:28 PM<br>Subject: Re: [sf-perl] CGI working<br><br>
Are 
you 
saying 
that 
using 
plain 
Perl 
CGI 
programs 
in 
Apache 
means 
that 
the<br>application 
(really 
the 
script, 
in 
this 
case) 
will 
NOT 
stay 
in 
memory<br>between 
invocations?&nbsp; 
That's 

bummer 
for 
me.<br><br>Neil 
Heller<br><br><br><br>-----Original 
Message-----<br>From: 
sanfrancisco-pm-bounces+nheller=<a ymailto="mailto:silcon.com@pm.org" href="mailto:silcon.com@pm.org">silcon.com@pm.org</a><br>[mailto:sanfrancisco-pm-bounces+nheller=<a ymailto="mailto:silcon.com@pm.org" href="mailto:silcon.com@pm.org">silcon.com@pm.org</a>] 
On 
Behalf 
Of<br>Michael 
Friedman<br>Sent: 
Saturday, 
March 
01, 
2008 
6:10 
PM<br>To: 
San 
Francisco 
Perl 
Mongers 
User 
Group<br>Subject: 
Re: 
[sf-perl] 
CGI 
working<br><br>If 
you 
are 
using 
mod_perl 
(or 

similar 
setup 
for 
non-apache&nbsp; <br>webservers) 
it 
will 
stay 
in 
memory 
between 
invocations. 
If 
you 
are&nbsp; <br>just 
using 
<a target="_blank" href="http://CGI.pm">CGI.pm</a> 
and 
launching 
the 
program 
from 

directory 
path,&nbsp; <br>then 
it 
gets 
called 
anew 
each 
time.<br><br>The 
CGI 
spec 
says 
that 
the 
webserver 
will 
call 
out 
to 
the 
program 
anew&nbsp; <br>every 
time. 
That 
is 
the 
same 
no 
matter 
what 
language 
the 
program 
is&nbsp; <br>written 
in: 
perl, 
python, 
C, 
bash 
shell, 
etc. 
It's 

really 
expansive&nbsp; <br>feature, 
since 
you 
can 
do 
anything 
you 
can 
do 
on 
the 
machine 
from 
the&nbsp; <br>webserver, 
but 
it's 

bit 
slow 
due 
to 
the 
repeated 
instantiations. 
;-)<br><br>You 
should 
check 
the 
documentation 
for 
your 
webserver 
about 
how 
it&nbsp; <br>handles 
CGI 
scripts 
for 
further 
details.<br><br>-- 
Mike<br><br><br>On 
Mar 
1, 
2008, 
at 
5:32 
PM, 
Neil 
Heller 
wrote:<br><br>&gt; 

looked 
and 
looked 
unsuccessfully 
to 
directly 
find 
the 
answer 
to 
my<br>&gt; 
question.&nbsp; 

was 
hoping 
someone 
here 
knew 
off 
the 
top 
of 
his 
head.<br>&gt;<br>&gt; 
When 

Perl-CGI 
program 
is 
launched, 
does 
it 
stay 
in 
memory 
as 
a&nbsp; <br>&gt; 
singularity<br>&gt; 
(like 
J2EE) 
or 
does 
it 
instantiate 
anew 
each 
time 
it's 
called?<br>&gt;<br>&gt;<br>&gt;<br>&gt; 
_______________________________________________<br>&gt; 
SanFrancisco-pm 
mailing 
list<br>&gt; 
<a ymailto="mailto:SanFrancisco-pm@pm.org" href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>&gt; 
<a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br><br>---------------------------------------------------------------------<br>Michael 
Friedman&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
 
HighWire 
Press<br>Phone: 
650-725-1974&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
Stanford 
University<br>FAX:&nbsp; 
 
270-721-8034&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&lt;<a ymailto="mailto:friedman@highwire.stanford.edu" href="mailto:friedman@highwire.stanford.edu">friedman@highwire.stanford.edu</a>&gt;<br>---------------------------------------------------------------------<br><br><br>_______________________________________________<br>SanFrancisco-pm 
mailing 
list<br><a ymailto="mailto:SanFrancisco-pm@pm.org" href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br><br>_______________________________________________<br>SanFrancisco-pm 
mailing 
list<br><a ymailto="mailto:SanFrancisco-pm@pm.org" href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br></div><br></div></div></body></html>