Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: $|=1;

by rochlin (Acolyte)
on Nov 05, 2002 at 21:19 UTC ( [id://210584]=note: print w/replies, xml ) Need Help??


in reply to $|=1;

Another side note on the above answers: Why is $| used in the script you're looking at? It's a good idea to use it in any CGI script that is outputing a webpage. If the output buffered (no $|=1) then the delay can cause errors in the generated HTML or might just cause a timeout. It's always a good idea to prevent buffering in a CGI script that generates a webpage.

For a nice place to live in Portland, OR

Replies are listed 'Best First'.
Re: Re: $|=1;
by Deanimal (Acolyte) on Nov 05, 2002 at 22:05 UTC
    $|=1; is currently in a script for a guestbook-- which obviously generates a webpage, so that makes sense. Thanks for explaining that. I'm having problems with another script-- for a survey (poll)-- that also generates a webpage. (My original question above has a link to it if you'd like to take a look) The problem is that a link in that webpage for "continue" doesn't contain the value that it's supposed to, and is instead just empty quotes (""). Maybe if I add this "unbuffering", then the link will print correctly. Sounds like it's worth a try. Thanks everybody!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://210584]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 04:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found