Hi,

I've been looking around all over for an answer, no luck yet. Maybe people from this list can help me.

I upgraded my server from an old distro(apache 1.3+mod_perl 1.x) to a centos5(apache 2.2 + mod_perl 2.x). It seems that $|=1; is not doing what it should do.

The code :


#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "---($¦)";
local $¦=1;
print "---($¦)";
print "1....2...";
sleep 5;
print "3....4...";
print "---($¦)";

The output :
<wait 5 seconds>---(0)---(1)1....2...3....4...---(1)

I should be getting :
---(0)---(1)1....2...<wait 5 seconds>3....4...---(1)

Server :
- CentOS release 5 (Final)
- mod_perl-2.0.2-6.3.el5
- httpd-2.2.3-7.el5.centos
Conf:
<Directory /some/directory>
SetHandler perl-script
PerlResponseHandler ModPerl::RegistryPrefork
Options +ExecCGI
PerlOptions +ParseHeaders
Options FollowSymLinks ExecCGI
</Directory>



Any hints ?

Thanx in advance.

FreiZz

Reply via email to