# # Example for using HTML::Embperl::Execute # # run this under mod_perl / Apache::Registry # use HTML::Embperl ; my($r) = @_; $HTML::Embperl::DebugDefault = 811005 ; $r -> status (200) ; $r -> send_http_header () ; print "Test for HTML::Embperl::Execute and errors\n" ; my $out ; print "

1.) The next one produces an error page

\n" ; HTML::Embperl::Execute ({inputfile => '../error.htm', output => \$out, req_rec => $r}) ; print "

$out

\n" ; undef $out ; print "

2.) The next one produces an errors, but error page is disabled

\n" ; HTML::Embperl::Execute ({inputfile => '../error.htm', output => \$out, options => HTML::Embperl::optDisableEmbperlErrorPage, req_rec => $r}) ; print "

$out

\n" ; undef $out ; print "

3.) Done :-)

\n" ; print "\n";