#!/usr/local/bin/perl5 asp <% $Response->{Buffer} = 0; %> =pod This pod comment should be yanked upon compilation =cut We are creating a perl syntax error... this should demonstrate how error handling is done. Please check the error log file if you are interested in the output there.

You can turn this error messaging off by setting the Debug variable in the ASP config to 1 or 0.

Also here is an example of how you can use debugging, an API extension $Response->Debug(@args), in your script. The debug output will show up below, and in your error logs. This user style debugging is turned off with the same Debug setting set to 0.

<% $Response->Debug( "Debugging", ['can', 'take'], {'just'=>'about'}, sub { ['any', 'kind']}, \"of reference", "or scalar" ); %> "> view this file's source <% # flush output that we have written so far, for prettier error $Response->Flush(); # create a run-time syntax error $Object->SyntaxError(); %>