ASP

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    Unescapes a URL-encoded list. Algorithms ripped from CGI.pm
    method of the same name.

  escapeHTML LIST

    Escapes a list of HTML. Uses ASP object method $Server-
    >HTMLEncode().

    If passed an array reference, escapeHTML will return a reference
    to the escaped array.

  unescapeHTML LIST

    Unescapes an HTML-encoded list.

    If passed an array reference, unescapeHTML will return a
    reference to the un-escaped array.

  param EXPR [, EXPR]

    Simplifies parameter access and makes switch from GET to POST
    transparent.

    Given the following querystring:

            myscript.asp?x=a&x=b&y=c

        param()      returns ('x', 'y')
        param('y')   returns 'c'
        param('x')   returns ('a', 'b')
        param('x',1) returns 'a'
        param('x',2) returns 'b'

    NOTE: Under Apache::ASP, param() simply passes the arguments to
    CGI::param() because Apache::ASP doesn't support the $obj-
    >{Count} property used in this function.

  param_count EXPR

    Returns the number of times EXPR appears in the request (Form or
    QueryString).

    For example, if URL is

            myscript.asp?x=a&x=b&y=c

    then

            param_count('x');

    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.

    AddDeathHook is not exported.

AUTHOR
    Tim Hammerquist <tim@dichosoft.com>

HISTORY
    Version 1.07
        Added Warn() because warn() overloading doesn't appear to
        work under Apache::ASP.

        Was forced to clear @DeathHooks array after calling _END()
        because of the persistent state of Apache::ASP holding over
        contents across executions.

        Removed BinaryWrite(), SetCookie(), and Autoload
        functionality.

    Version 1.00
        The escapeHTML() and unescapeHTML() functions now accept
        array refs as well as lists, as Win32::ASP::HTMLEncode() was
        supposed to. Thanks to Matt Sergeant for the fix.

    Version 0.97
        Optimized and debugged.

    Version 0.77
        Overloaded warn() and subsequently removed prototypes.

        Exported $ScriptingNamespace object.

        Added methods escape(), unescape(), escapeHTML(),
        unescapeHTML(). Thanks to Bill Odom for pointing these out!

        Re-implemented SetCookie and BinaryWrite functions.

    Version 0.11
        Optimized and debugged.

SEE ALSO
    ASP::NextLink(3)



( run in 0.933 second using v1.01-cache-2.11-cpan-39bf76dae61 )