or download this
join() does three things: it waits for a thread to exit, cleans up
after it, and returns any data the thread may have produced.
...
In this case, you use the detach() method. Once a thread is
detached, it'll run until it's finished, then Perl will
clean up after it automatically.