PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Sheree Hemphill" <sah18 at po dot cwru dot edu>
Subject: RE: Using sybperl with cgi
Date: Feb 16 1999 8:25PM

> Sheree> Is there a way to change this somehow in the web server
> Sheree> configuration?  Or is this just something I will have to live
> Sheree> with?
>
> I don't know. What web server are you using?
>
> The only web server I know somewhat is Apache, and it definitely does
> not do this!

I'm using Netscape Enterprise Server, so it's probably not one you're
familiar with.


> >>  One other thing that you should probably do is to turn off the
> >> buffering of STDOUT. Place this near the top of your script:
> >>
> >> select(STDOUT); $| = 1;
> >>
>
> Sheree> What does adding this line change (sorry for my newness at
> Sheree> this)?
>
> STDERR is usually unbuffered, while STDOUT is usually buffered. This
> means that although you had the
>
> print header();
>
> call first in the script, the warning message (generated by perl, on
> STDERR) got to the web server first because STDOUT is buffered.
>
> By setting $| = 1 you unbuffer STDOUT, and this will (probably)
> guarantee that your header will be seen by the web server first.

Thank you again for your detailed explanations.  I must say, Michael, it is
very rare to be able to ask questions directly of the author!  I appreciate
how accessible you make yourself.

Sheree