ASP
view release on metacpan or search on metacpan
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()
methods provided by ASP.pm.
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
die() or exit() methods provided by ASP.pm.
( run in 0.973 second using v1.01-cache-2.11-cpan-49f99fa48dc )