;
close(PIPE);
Test2($c, $b, @_);
}
$ENV{'REQUEST_METHOD'} = 'GET';
$ENV{'QUERY_STRING'} = $opt_debug ? 'debug=1' : '';
$ENV{'REMOTE_ADDR'} = '127.0.0.1';
my $parser = HTML::EP->new();
Test($parser, "Creating the parser.\n");
my $input = <<'END_OF_HTML';
Something strange happened!
END_OF_HTML
my $output = <<'END_OF_HTML';
content-type: text/html
Fatal internal error
Fatal internal error
An internal error occurred. The error message is:
Something strange happened! at blib/lib/HTML/EP.pm line 7.
.
Please contact the Webmaster and tell him URL, time and error message.
We apologize for any inconvenience, please try again later.
Yours sincerely
END_OF_HTML
Test3($input, $output, "Simple error.\n");
$input = <<'END_OF_HTML';
Oops: $errmsg$
So what!
END_OF_HTML
$output = <<'END_OF_HTML';
content-type: text/html
Oops: So what! at blib/lib/HTML/EP.pm line 7.
END_OF_HTML
Test3($input, $output, "Error template.\n");
unlink "foo.ep";