Geoffrey Young wrote:
Hamilton, Henrique H wrote:
I'm new to modperl
welcome. be sure to check out the many resources as http://perl.apache.org/
and I was wondering if anyone knew how to print
environment variables from modperl2.
Any help would be much appreciated.
if you mean CGI-specific environment variables (like $ENV{DOCUMENT_ROOT})
then you need to either use
SetHandler perl-script
or make sure that you have
PerlOptions +SetupEnv
enabled. other than that, you can iterate over %ENV the same way as you
would in normal perl.
And a direct link to the explanation and examples:
http://perl.apache.org/docs/2.0/user/config/config.html#Examples
no need to waste time typing ;)
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] 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