Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Do I need threads?

by 1arryb (Acolyte)
on Dec 20, 2011 at 21:42 UTC ( [id://944484]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://944484]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-18 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found