Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Using exit

by eieio (Pilgrim)
on Dec 30, 2004 at 16:48 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://418311]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-28 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found