Greetings.
Thanks to all the respondednts - as it looks my original message was too
terse, I'll try to clarify a bit.
I have an app that already works on Apache CGI.pm, Apache::Registry and
FastCGI.
It also works under PWS/IIS as CGI - and I'll be testing it under AS's
perlex shortly.
At present, the first thing it does is
use strict;
use CGI;
sub main {
my $q=new CGI;
#...
}
main();
1;
It then goes on to its errand, using $q, $q->param, $q->print to its heart
content.
I would like to plug it into IIS's ASP engine, ideally touching nary a line
of code, something along the lines of:
<% @LANGUAGE = PerlScript
use CGI:FromAsp; #our valiant package.
my $q=CGI::FromAsp->new($Request);
#
# $q now looks and feels like a CGI.
# also print (or $query->print) does the RIGHT THING, and %ENV is what
# we'd expect it to be.
#
if ($q->isa('CGI')) { #it is..
$q->print($q->header(-type=>'text/html');
frobnicate($q);
$q->print($q->end_html());
} else {
print("<h1>CGI:FromAsp sucks like a tornado</h1>\n");
}
%>
Because my current knowledge of ASP is pretty basic, I do not know if it's
even possible... though it
sure looks like it should be.
Cheers,
alf