in reply to Do I need threads?

Hi, TechFly,

No. As usual, there's more than one way to do it. In addition to threads (which I've never used in Perl), I can think of several:

  1. The lo-tech way: Use backgrounded system calls that append to a single logfile then tail the log from another terminal.
  2. Classic IPC using fork() and exec() and open3() as described in the perlipc perldoc.
  3. Same as 2), but let a Perl module like IPC::PerlSSH::Async do the heavy lifting for you.

Cheers,

Larry

Replies are listed 'Best First'.
Re^2: Do I need threads?
by TechFly (Scribe) on Dec 20, 2011 at 23:46 UTC

    This is exactly what I needed. Thank you so much. I have not done a ton of perl, so I didn't know all of my options. This helps a lot.