renegadex has asked for the wisdom of the Perl Monks concerning the following question:

Hi! I was wondering if Perl Threads emits a signal? I wanted to run some modules after the thread finishes running. Placing the module inside the thread is not an option... I wanted a signal that is emmited when the thread finishes.
Mabuhay Civil Engineers! :D

Replies are listed 'Best First'.
Re: Thread Emited Signals?
by cdarke (Prior) on Dec 01, 2008 at 17:18 UTC
    The best you can do is wait for the thread to complete with $thread->join(), then proceed to execute the final code.
    I don't mean to descend into semantics, but do you really mean a signal? Signals are process, not thread, based.
Re: Thread Emited Signals?
by Anonymous Monk on Dec 01, 2008 at 13:41 UTC
    No, that would be weird. You can always emit one yourself.