The technique is outline in Watching long processes through CGI (Aug 02)
See also Proc::Background
In reply to Re: Exception from perl by Anonymous Monk in thread Exception from perl by AnnShinoy