Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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:

$|++;


Comment on Re^3: Using exit
Download Code
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.
      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 ...

      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.

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 making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-09-20 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (155 votes), past polls