You may need to use the "SetupEnv" option in your httpd.conf file 
(this can be included in the same stanza that is home to your 
SetHandler directive):

                PerlOptions +SetupEnv

        Or if you don't need %ENV in most of your scripts, then a call to 
the subprocess_env() subroutine would probably be more efficient to 
pull this in on an as-needed basis:

                $r->subprocess_env;

        The "examples" section in ModPerl 2's User Guide documentation is 
worth reading as it provides helpful code that demonstrates its use:

                mod_perl 2.0 Server Configuration
                
https://perl.apache.org/docs/2.0/user/config/config.html#examples

        I'm not familiar with EmbPerl as I use mod_perl2 directly for all 
the web-sites I work on (including new projects today), but hopefully 
this will provide you with what you need.

> Hello
> 
> I have been using EMBPERL for a long time.  I use Perl Modules (.pm
> files) to do most of the heavy lifting.  
> 
> I'm pass %fdat data to my modules by assigning it as a hash reference
>    [- $obj = MODULE->new(\%fdat) -]
> 
> I am wonding if within a module I can access %ENV directly without
> needing to do something similar.
> 
> I want to cause a sepecific behavor based on the URL and Host calling
> the script.
> 
> FWIW - I wrote most of this code before embperl objects
> 
> Ruevain
> 
> -- 
> So many immigrant groups have swept through our town
> that Brooklyn, like Atlantis, reaches mythological
> proportions in the mind of the world - RI Safir 1998
> http://www.mrbrklyn.com 
> 
> DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
> http://www.nylxs.com - Leadership Development in Free Software
> http://www2.mrbrklyn.com/resources - Unpublished Archive 
> http://www.coinhangout.com - coins!
> http://www.brooklyn-living.com 
> 
> Being so tracked is for FARM ANIMALS and extermination camps, 
> but incompatible with living as a free human being. -RI Safir 2013
> 


Randolf Richardson, CNA - [email protected]
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
https://www.inter-corporate.com/


Reply via email to