use
CGI ();
use
strict;
my
$r
= CGI->new;
#warn "Running cgi.pl with $CGI::VERSION";
my
(
$param
) =
$r
->param(
'PARAM'
);
my
(
$httpupload
) =
$r
->param(
'HTTPUPLOAD'
);
$r
->
(
$r
->header(
-type
=>
"text/plain"
,
"-X-Perl-Script"
=>
"cgi.pl"
) );
$r
->
(
"ok $param\n"
)
if
$param
;
my
(
$content
);
if
(
$httpupload
) {
no
strict;
local
$/;
$content
= <
$httpupload
>;
$r
->
(
"ok $content\n"
);
}