BEGIN { pipe(DEBUG, STDERR) } # your CGI stuff END { close STDERR; print '
Script warnings', '
', , '
' unless eof DEBUG; }