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

Re^3: Using exit

by eieio (Pilgrim)
on Dec 30, 2004 at 16:48 UTC ( #418311=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Using exit
in thread Using exit

It sounds like you are developing a CGI application. If this is the case, turning off output buffering may ensure that the output from the script is displayed in the browser:
$|++;

Replies are listed 'Best First'.
Re^4: Using exit
by Anonymous Monk on Dec 30, 2004 at 16:52 UTC
    Yes I am, and I am using $|++ already, but at some point I would like to have what the exit does but no success yet.
      The behavior may be browser dependent. I've noticed that Safari on Mac OS X doesn't incrementally load pages even if the output buffering is disabled by the script. However, Firefox does incrementally display the page.

      While more complicated, a solution developed by Randal Schwartz may be more appropriate, if you are trying to provide incremental feedback during a long-running operation.

      then you're between a rock and a hard place.

      you may need to refactor the output ... so that you're sending stuff more frequently .....

      without seeing any code, that's probably the best any of us can do ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-08-28 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (392 votes). Check out past polls.