<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. It's not up to Perl, it's depend on the web server configuration not the application.<br><br>-Darin<br><div> </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 <nheller@silcon.com><br>To: San Francisco Perl Mongers User Group <sanfrancisco-pm@pm.org><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?
That's
a
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
a
similar
setup
for
non-apache <br>webservers)
it
will
stay
in
memory
between
invocations.
If
you
are <br>just
using
<a target="_blank" href="http://CGI.pm">CGI.pm</a>
and
launching
the
program
from
a
directory
path, <br>then
it
gets
called
anew
each
time.<br><br>The
CGI
spec
says
that
the
webserver
will
call
out
to
the
program
anew <br>every
time.
That
is
the
same
no
matter
what
language
the
program
is <br>written
in:
perl,
python,
C,
bash
shell,
etc.
It's
a
really
expansive <br>feature,
since
you
can
do
anything
you
can
do
on
the
machine
from
the <br>webserver,
but
it's
a
bit
slow
due
to
the
repeated
instantiations.
;-)<br><br>You
should
check
the
documentation
for
your
webserver
about
how
it <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>>
I
looked
and
looked
unsuccessfully
to
directly
find
the
answer
to
my<br>>
question.
I
was
hoping
someone
here
knew
off
the
top
of
his
head.<br>><br>>
When
a
Perl-CGI
program
is
launched,
does
it
stay
in
memory
as
a <br>>
singularity<br>>
(like
J2EE)
or
does
it
instantiate
anew
each
time
it's
called?<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>Michael
Friedman
HighWire
Press<br>Phone:
650-725-1974
Stanford
University<br>FAX:
270-721-8034
<<a ymailto="mailto:friedman@highwire.stanford.edu" href="mailto:friedman@highwire.stanford.edu">friedman@highwire.stanford.edu</a>><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>