<Perl>...</Perl> and startup.pl equivalent?

[prev] [thread] [next] [Date index for 2004/12/13]

From: colin_e
Subject: <Perl>...</Perl> and startup.pl equivalent?
Date: 14:38 on 13 Dec 2004
Platforms: Solaris 9, Win XP
Apache: 2.0.52
Perl: ActiveState Perl 5.8.4

Hi Guys,
    New to Apache 2.0.52 and modperl, working through the install and 
configure steps.

Most books and docs on using modperl recommend using a "startup.pl" script
to configure the Perl environment on startup, setting lib paths etc.  
However, Apache now
supports  <Perl>...</Perl> sections directly in the Apache config files.

In a normal perl script, a chunk of code brought in with "require" is 
exactly the same as a
block inline within the the main routine.

Queastion- is this the same in Apache? I.e, instead of using a 
startup.pl file can I include all the perl
configuration inline in httpd.conf inside <Perl></Perl> blocks, with the 
same effect? Logically
it would seem so, but the apache docs also say variables in the <Perl> 
blocks go away after use,
so it's unclear whether oeprations like "use lib ...." would have an effect.

Regards: Colin

        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

<Perl>...</Perl> and startup.pl equivalent?
colin_e 14:38 on 13 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Martin Moss 14:51 on 13 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Stas Bekman 23:41 on 13 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Stas Bekman 23:53 on 13 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Stas Bekman 00:29 on 14 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Stas Bekman 16:54 on 13 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Stas Bekman 23:31 on 13 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Philippe M. Chiasson 23:42 on 13 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Stas Bekman 00:27 on 14 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Philippe M. Chiasson 21:12 on 14 Dec 2004

Re: <Perl>...</Perl> and startup.pl equivalent?
Stas Bekman 23:53 on 14 Dec 2004

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52