1
0
mirror of https://github.com/apache/httpd.git synced 2025-06-03 10:42:03 +03:00
Roy T. Fielding f93ba81e47 Merge forward changes in Apache 1.3 printenv
Submitted by:	Ralf S. Engelshall


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84873 13f79535-47bb-0310-9956-ffa450edef68
2000-03-31 06:32:10 +00:00

14 lines
274 B
Perl

#!/usr/local/bin/perl
##
## printenv -- demo CGI program which just prints its environment
##
print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}