ASP
view release on metacpan or search on metacpan
#####################################################################
#
# ASP - Facilitate integration of PerlScript with ASP
#
# Author: Tim Hammerquist
# Revision: 1.07
# NOTES: based on Matt Sergeant's Win32-ASP module.
#
#####################################################################
#
# Copyright 2000 Tim Hammerquist. All rights reserved.
#
# This file is distributed under the Artistic License.
# See http://www.perl.com/language/misc/Artistic.html or
# the license that comes with your perl distribution.
#
# Contact me at cafall@voffice.net with any comments,
# flames, queries, suggestions, or general curiosity.
#
#####################################################################
require 5.005;
use strict;
my ($APACHE, $WIN32);
$APACHE = $Apache::ASP::VERSION;
$WIN32 = $^O =~ /win/i;
package ASP::IO;
sub TIEHANDLE { shift->new(@_) }
sub PRINT { shift->print(@_) }
sub PRINTF { shift->print(sprintf(@_)) }
sub new { bless {}, shift; }
sub print {
my $self = shift;
ASP::Print(@_);
1;
}
1;
package ASP;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $ASPOUT);
require CGI;
BEGIN {
require Exporter;
use vars qw( @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS
$Application $ObjectContext $Request $Response
$Server $Session $ScriptingNamespace @DeathHooks
);
@ISA = qw( Exporter );
%EXPORT_TAGS = (
basic => [qw(
Print Warn die exit param param_count
)],
strict => [qw(
Print Warn die exit param param_count
$Application $ObjectContext $Request
$Response $Server $Session
$ScriptingNamespace
)],
all => [qw(
Print Warn die exit param param_count
$Application $ObjectContext $Request
$Response $Server $Session
$ScriptingNamespace
DebugPrint HTMLPrint
escape unescape escapeHTML unescapeHTML
)],
);
Exporter::export_tags('basic');
Exporter::export_ok_tags('all');
$Application = $main::Application;
$ObjectContext = $main::ObjectContext;
$Request = $main::Request;
$Response = $main::Response;
$Server = $main::Server;
$Session = $main::Session;
$ScriptingNamespace = $main::ScriptingNamespace unless $APACHE;
if ($WIN32) {
%ENV = ();
for (Win32::OLE::in $Request->ServerVariables) {
$ENV{$_} = $Request->ServerVariables($_)->Item;
}
}
}
( run in 2.398 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )