""Ibrahim Dawud"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Since mod_perl wraps my entire code into a handler subroutine behind
> the scenes, I figured out how to access the apache API from a normal
> cgi script. Hence, the following example appears to be working under
> mod_
Since mod_perl wraps my entire code into a handler subroutine behind
the scenes, I figured out how to access the apache API from a normal
cgi script. Hence, the following example appears to be working under
mod_perl2:
#!/usr/bin/perl
my $r = shift;
use CGI;
my $cgi = new CGI;
print $cgi->header(
Mr. Shawn H. Corey wrote:
> Ibrahim Dawud wrote:
>
>>Hello,
>>
>>The following code works great using normal perl but does not work
>>under mod_perl:
>>
Oops, I overlooked the fact that you are using mod_perl. I haven't use
it for years but I seem to recall that STDOUT is redirected to the
socket
Ibrahim Dawud wrote:
> Hello,
>
> The following code works great using normal perl but does not work
> under mod_perl:
>
> #!/usr/bin/perl
>
> use CGI;
> my $cgi = new CGI;
> print $cgi->header();
> print $cgi->start_html();
> $| = 1;
> print $cgi->h2("test1");
> sleep 1;
> $| = 1;
> print $cgi-
Hello,
The following code works great using normal perl but does not work
under mod_perl:
#!/usr/bin/perl
use CGI;
my $cgi = new CGI;
print $cgi->header();
print $cgi->start_html();
$| = 1;
print $cgi->h2("test1");
sleep 1;
$| = 1;
print $cgi->h2("test2");
sleep 1;
$| = 1;
print $cgi->h2("test3