summaryrefslogtreecommitdiff
path: root/cgi/printenv.pl
blob: 9686c8877a50e4f1149873ce477721832c9aa0c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl

use strict;
use warnings;

print "Status: 403\r\n";
print "Content-Type: text/plain\r\n\r\n";

# foreach my $var (sort(keys(%ENV))) {
#     my $val = $ENV{$var};
#     $val =~ s|\n|\\n|g;
#     $val =~ s|"|\\"|g;
#     print "${var}=\"${val}\"\n";
# }