in reply to join() in perl threads does not return
in thread join() in perl threads does not return

Hm. In that case you'll need to post actual code, that is runnable and demonstrates the problem.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
join() in perl threads does not return
by Mj1234 (Sexton) on Oct 03, 2016 at 08:49 UTC
    Ya there is a backtick at the beginning as well. Must have been left out while copying

      In the absence of code that demonstrates the problem, it is hard to move forward.

      A simplistic test of the problem as described shows that the join works fine:

      [0]{} Perl> print async{ `perl -e1`; return 'Completed'; }->join;; Completed [0]{} Perl>

      The backticks ran in a void context, running an executable that produced no output; the thread ended returning the string 'Completed'; which was retrieved with join, and passed to print and displayed.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice.