Yes myscript.pl takes a long time to run. I'm not worried about DOS because of various other security mechanisms in place. Unfortunately I don't know AJAX so I'm stuck trying to with CGI and perl.
How would Proc::Daemon help in this case? Would it replace Proc::Background?