Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?
[perldigious]: A question since I'm ignorant of what's normal for database management... Do admins change column names a lot in databases?
[perldigious]: On occasion my scripts break, because they will do something that seems laregly pointless to me... like in this case, changing a column name from "ABC Category" to "ABC Category Override".
[perldigious]: Being the ignorant one, my initial reaction to that is, "that's sort of a dick move, a lot of people like me expect column names like that to stay the same, why the hell would you change them like that for seemingly no good reason?"
[perldigious]: Or is my irritation/ frustration well founded?

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-05-25 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?