#!/usr/local/bin/perl5 asp <% use File::Basename; if($Request->QueryString('buffer')) { $Response->{Buffer} = 1; } else { $Response->{Buffer} = 0; } %> 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.

=pod This pod comment will be yanked upon compilation =cut <% $Response->Debug( "Debugging", ['can', 'take'], {'just'=>'about'}, sub { ['any', 'kind']}, \"of reference", "or scalar" ); print "Try this script also with buffering on."; %>

"> view this file's source

<% my $Object; # create a run-time syntax error $Object->SyntaxError(); %>