$| = 1; # keep info to browser going when it's there # Do some piece of long running stuff; this will # prevent apache from timing out the connection # but might need to be called often. $r->reset_timeout(); # At the same time check that user still cares. $r->connection->aborted() and stop_it_all(); # While in a browser nearby some clever JavaScript is # showing "Processing" "dot" "dot" "dot" and can # be dynamically fed updates by something like $r->print('