Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: ForkBlock

by belg4mit (Prior)
on Dec 25, 2008 at 02:04 UTC ( #732530=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    --- ForkBlock.pm~    Wed Dec 24 20:18:01 2008
    +++ ForkBlock.pm    Wed Dec 24 21:02:50 2008
    ...
         
         local $!;
    
  2. or download this
    --- ForkBlock.pm~    Wed Dec 24 21:02:50 2008
    +++ ForkBlock.pm    Wed Dec 24 21:14:35 2008
    ...
           }
             elsif(defined($CHILD_PID)) {
                 #i'm the child
    
  3. or download this
    Fork {
        Parent \&manager,
        Child  \&worker
    };
    
  4. or download this
    --- ForkBlock.pm~    Wed Dec 24 21:14:35 2008
    +++ ForkBlock.pm    Thu Dec 25 02:08:18 2008
    ...
     
         croak "No Child defined" unless $child;
         croak "No Parent defined" unless $parent;
    
  5. or download this
    Fork {
        Parent=>sub{ ... }, #The comma's important here.
        Child =>sub{ ... }
    };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2023-03-30 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (74 votes). Check out past polls.

    Notices?