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

if you're trying to get things to display to the browser, there are other things to do:
to force writes to be "immediate". (i'm forgetting the proper term .. not enough coffee yet this morning ... )

the reason  exit is sending the output to the browser is because the write buffer is closed, like a  close on a filehandle.