[Chicago-talk] my my if nothing

Randal L. Schwartz merlyn at stonehenge.com
Wed May 5 20:32:16 CDT 2004

>>>>> "Greg" == Greg Fast <gdf at speakeasy.net> writes:

>> Well, were you using Apache::Registry?

Greg> Yes, I was.  I guess that's what I tend to mean when I say
Greg> "under mod_perl".

Most serious work under mod_perl is not with Apache::Registry, so I
never assume.  For example, nothing on my web site is
Apache::Registry, and yet the entire site is served with mod_perl.

The Apache::Registry hack surrounds your CGI.pm-compatible script with

package Some::unique::name::here;

sub handler {

        [your script here;
        all of it;
        and then some;]


And then invokes that request at the right time.  It's the nested
named-sub-within-named-sub-that-can-see-my-variables that's the
problem, not the block with the my variable.

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

More information about the Chicago-talk mailing list