Ok, thanks for the infos.

Do I need to type use mod_perl; in scripts?
And is scipting in strict enough as of "good" scripting is involved?

Etienne

"Brett W. McCoy" wrote:

> On Wed, 24 Oct 2001, Etienne Marcotte wrote:
>
> > I read often about that mod_perl that makes perl run a lot faster and
> > etc. I tought until now that it was "by default" mod_perl when it's
> > with the apache distribution, but Brett stated: "and CGI::Carp has
> > some problems when run under mod_perl"
>
> No, mod_perl is not necessarily a part of Apache.  I think some RPM/Debian
> packages are available for mod_perl, but it is an add-on to Apache.  It
> basically embeds a Perl interpreter into the Apache server space, so
> scripts that have been compiled stay compiled, and provides for persistent
> database connections, session management, etc.  It does provide much
> better performance (at the price of resource usage) than native CGI.
>
> > Does that mean a script has to be build for mod_perl and/or mod_perl
> > needs to be "called" in each script? Or mod_perl is not something I
> > should worry about and if it's with my Apache it means it's using
> > it...:-)
>
> mod_perl does require you to use clean programming practices -- it won't
> let you get away with sloppy code, improper use of global variables, etc.,
> and it does provide an API to Apache itself, which rocks, but is not
> something for beginers.
>
> See http://perl/apache.org for more information, if you are interested.
>
> -- Brett
>                                           http://www.chapelperilous.net/
> ------------------------------------------------------------------------
> "If Jesus came back today, and saw what was going on in his name, he'd never
> stop throwing up."
> -- Max Von Sydow's character in "Hannah and Her Sisters"
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

S/MIME Cryptographic Signature

Reply via email to