Owen Cook a écrit :


On Tue, 20 Jun 2006, sfantar wrote:

David Dorward a écrit :
On Tue, Jun 20, 2006 at 10:25:33AM +0200, sfantar wrote:
Why are there differences between the output of the CGI mentioned below which displays the content of $ENV{HOME} et $ENV{PATH}?
The environment the webserver runs is different to the environment
your shell runs.

Where can I find how the environment of the webserver is configured concerning perl?



try something like this (untested);

#!/usr/bin/perl

print "Content-type: text/html\n\n";

foreach $key(sort keys(%ENV)) {
 print "$key = $ENV{$key}<br>";

}
It works.This is what I was looking for. Thanks.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to