true has asked for the wisdom of the Perl Monks concerning the following question:
Howdy,
Trying to debug a script. Running perl5.005 under mod_perl. I have taint checking on and 'use strict;'.
My httpd log reports...
Here's line 37...Use of uninitialized value at index.cgi line 37.
How do i initialize the ENV Hash so it won't report this error? I want to reference the environmental variables in my script. Declaring %ENV = (); didn't work either ;>. Thanks for help monks.print NEW "$ENV{'QUERY_STRING'}\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
mod_perl does not initialize $ENV{QUERY_STRING}
by lestrrat (Deacon) on Oct 23, 2002 at 10:24 UTC | |
Re: initialize ENV variables under strict
by BrowserUk (Patriarch) on Oct 23, 2002 at 09:10 UTC | |
Re: initialize ENV variables under strict
by broquaint (Abbot) on Oct 23, 2002 at 08:48 UTC | |
Re: initialize ENV variables under strict
by krusty (Hermit) on Oct 23, 2002 at 08:55 UTC | |
Re: initialize ENV variables under strict
by true (Pilgrim) on Oct 23, 2002 at 10:02 UTC | |
by chromatic (Archbishop) on Oct 23, 2002 at 18:14 UTC |
Back to
Seekers of Perl Wisdom