#!/usr/bin/perl -T

print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
    $val = $ENV{$var};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    $val =~ s|<|&lt;|g;
    $var =~ s|<|&lt;|g;
    print "${var}=\"${val}\"\n";
}

while ($line=<>) {
    $line =~ s|<|&lt;|g;
    print $line ;
}

