blob: 207074361a7d9eadcb5a8eee15022cea10cb4968 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/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";
}
|