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

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

From: Stas Bekman
Subject: Re: <Perl>...</Perl> and startup.pl equivalent?
Date: 23:41 on 13 Dec 2004
Martin Moss wrote:
> Hi Colin,
> 
> just my opinion, but from a 'practicalities' point of
> view, as startup.pl gets more complex (your site grows
> larger, you wish to do more intricate mod_perly
> things), you will find that it is a distinct advantage
> to run it from the command line in the debugger. you
> wouldn't be able to do this if you buried all your
> perl in the apache configs...

Actually as philippe reminds me you can enclose the Apache stuff in =pod stuff

=pod
This is some pod data
=over apache
PerlSetVar TestDirective__pod_over_worked yes
=back
This is some more pod
=cut
PerlSetVar TestDirective__pod_cut_worked yes

so you can run:

perl -c httpd.conf


> I'm sure there's many more reasons to keep your
> startup script outside of the http configs, usually
> it's because it's only neat and tidy to begin with
> embedding your perl into your configs, but as your
> site configs get larger, you'll probably start
> thinking it a better idea to put all your <perl>
> sections in their own seperate httpd conf file, which
> might as well be a startup.perl script......

that's correct. <Perl> sections are really there only for doing Apache 
config and nothing else. It just so happens that people "mis-use" the feature.

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
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)

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