Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 lurking in the Monastery: (4)
As of 2023-02-07 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (38 votes). Check out past polls.

    Notices?