Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Please Explain the Parallel::ForkManager Idiom my $pid = $pm->start and next;

by Jim (Curate)
on Feb 05, 2014 at 01:46 UTC ( #1073502=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "\nAll the kids are out of the pool\n";
    
    exit 0;
    
  2. or download this
        next KID_IN_LINE if $lifeguard->start($kid) != 0;
    
  3. or download this
    $lifeguard->run_on_start(
        sub {
    ...
            print "\nThe lifeguard waves $kid into the pool\n";
        }
    );
    
  4. or download this
    $lifeguard->run_on_finish(
        sub {
    ...
            print "\n$kid climbs out of the pool\n";
        }
    );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2015-07-06 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls