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. If that is the case (check your reference manual for mod_perl) you would have to use the socket flush method. See `perldoc Socket` and `perldoc IO::Socket` for details. Also note that some web servers disable setting autoflush on their sockets. This is because they may be handling more than one request at a time and sending full buffers is more efficient. -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>