Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Need help with Perl multi threading

by BrowserUk (Pope)
on Jan 25, 2012 at 21:20 UTC ( #949970=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       push (@threads, threads->new(\&Process_Output, $ssh, $proc ));
       while ( $thread = shift @threads )
       {
           @output=$thread->join();
       }
    
  2. or download this
       $thread = threads->new(\&Process_Output, $ssh, $proc );
       if( $thread )
       {
           @output = $thread->join();
       }
    
  3. or download this
        $thread =  threads->new(\&Process_Output, $ssh, $proc );
        @output = $thread->join();
    
  4. or download this
        @output = threads->new(\&Process_Output, $ssh, $proc )->join();
    
  5. or download this
       @output = Process_Output( $ssh, $proc );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-07-29 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls