#print "Content-type: text/plain\n\n"; @temps = ($ENV{'TEMP'},$ENV{'TMP'},'/tmp','~/'); for (@temps) { if (-d) { $temp=$_; last } } $temp =~ s#[/\\]*##; $tempfile = "$temp/pl".int(rand(100000)); while (-e $tempfile) { $tempfile = "$temp/pl".int(rand(100000)); } #print "Z:$temp\n"; system "perl 2> $tempfile ".join(' ',@ARGV); open FP,$tempfile; while () { if (!$gotcrap) { print "Content-type: text/html\n\n"; print "-----------PERL SCRIPT PRODUCED STDERR OUTPUT!----------------\n
\n";
		$gotcrap=1;
	}
	s//>/g;
	s/"/"/g;
	s/ / /g;
	s/\t/    /g;
	#s/(\r\n)|\n/
\n/g; print; } if ($gotcrap) { print "
\n"; } close FP; unlink $tempfile;