willjones has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to spawn a thread in a Perl file that is posted to by CGI request. I added a use Thread; statement at the top and after setting $thr = new Thread &myfunc; I did a $thr->detach; to attempt to detach the thread. Unfortunately though when the Perl file finishes executing and returns HTML info to the browser to be displayed my spawned thread stops dead instead of continuing to process on my webserver. What am I doing wrong?