ASP
view release on metacpan or search on metacpan
if ($main::Request->ServerVariables('REQUEST_METHOD')->Item eq 'GET') {
return $main::Request->QueryString($_[0])->{Count};
} else {
return $main::Request->Form($_[0])->{Count};
}
}
=head2 AddDeathHook LIST
Allows cleanup code to be executed when you C<die> or C<exit>.
Useful for closing database connections in the event of a
fatal error.
<%
my $conn = Win32::OLE-new('ADODB.Connection');
$conn->Open("MyDSN");
$conn->BeginTrans();
ASP::AddDeathHook( sub { $Conn->Close if $Conn; } );
%>
Death hooks are not executed except by explicitly calling the die() or exit()
returns 2.
NOTE: Under Apache::ASP, param_count() performs some
manipulation using CGI::param() because Apache::ASP doesn't
support the $obj->{Count} property used in this function.
AddDeathHook LIST
Allows cleanup code to be executed when you `die' or `exit'.
Useful for closing database connections in the event of a fatal
error.
<%
my $conn = Win32::OLE-new('ADODB.Connection');
$conn->Open("MyDSN");
$conn->BeginTrans();
ASP::AddDeathHook( sub { $Conn->Close if $Conn; } );
%>
Death hooks are not executed except by explicitly calling the
( run in 0.295 second using v1.01-cache-2.11-cpan-8d75d55dd25 )