Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 38562 invoked from network); 13 Jan 2010 20:23:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 20:23:03 -0000 Received: (qmail 47366 invoked by uid 500); 13 Jan 2010 20:23:02 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 47317 invoked by uid 500); 13 Jan 2010 20:23:02 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 47307 invoked by uid 99); 13 Jan 2010 20:23:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 20:23:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.22.89.58] (HELO host.habitatlife.com) (64.22.89.58) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 20:22:52 +0000 Received: from natgw.esedona.net ([12.164.196.100] helo=[10.0.1.3]) by host.habitatlife.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1NV9jY-0003U5-FB for modperl@perl.apache.org; Wed, 13 Jan 2010 14:22:28 -0600 From: Boysenberry Payne Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Caveats to using Perl Sections for server configuration? Date: Wed, 13 Jan 2010 13:22:29 -0700 Message-Id: <50D52F47-B76C-4401-96ED-018513577E43@habitatlife.com> To: mod_perl list Mime-Version: 1.0 (Apple Message framework v1077) X-Mailer: Apple Mail (2.1077) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.habitatlife.com X-AntiAbuse: Original Domain - perl.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - habitatlife.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org I'm using blocks in my apache conf files for early server = configuration. I remember reading someone on this list saying they wouldn't use Perl = Sections at all. The main reason I chose to use them to initialize some of my server = configuration was to allow for relative addressing to the .conf file = rather than the apache root via the __FILE__ variable. That allows me to load my perl startup.pl files on different servers = regardless of where they're stored by keeping them arranged relative to = the .conf file loading them. Up to now I've kept what I've done in the Perl Sections limited to = manipulating @INC and @PerlConfig. I tried using a couple of perl modules that used 'our' type scopes and = they all bombed out saying Perl Sections couldn't add the variable, e.g. = it chokes on File::chdir's $CWD variable. It does seem to use packages correctly, that in turn become available = afterword in the symbol tables. So while the documentation for the Perl Sections was adequate enough to = get what I needed accomplished, it's left me hungry for more info on = what's going on behind the scenes. Before I go and dig around in the source (which I plan on doing,) I was = wondering if anyone mind sharing the experience and insights on Perl = Sections, pros cons, etc. i.e. I'm referring to blocks in apache .conf files. Thank you, Boysenberry Payne