Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: ForkBlock

by belg4mit (Prior)
on Dec 25, 2008 at 02:04 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found