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.

HTH

--Geoff


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

Reply via email to