in reply to how to retrive back the return from a subroutine being run from a thread

Did you try writing to the pipe instead of print to stdout?
  • Comment on Re: how to retrive back the return from a subroutine being run from a thread