in reply to Keeping the script running after the Brower closes
$|=1; # Send output to browser right away [download]
However the browser page still won't fully 'finish' until your script does, unless you do a fork.
oxone | www.datasalon.com