Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Parallel::ForkManager::Child

Name Parallel::ForkManager::Child
Version 2.02
Located at /usr/share/perl5
File /usr/share/perl5/Parallel/ForkManager/Child.pm
Is Core No
Search CPAN for this module Parallel::ForkManager::Child
Documentation Parallel::ForkManager::Child
Module Details Parallel::ForkManager::Child


NAME

Parallel::ForkManager::Child - role adopted by forked Parallel::ForkManager processes


VERSION

version 2.02


SYNOPSIS

   use 5.10.0;
   use Parallel::ForkManager;
   my $fm = Parallel::ForkManager->new;
   say "parent does not consume the child role: ", $fm->does('Parallel::ForkManager::Child');
   $fm->start_child(sub{ 
        sleep $_;
        say "but the child does: ", $fm->does('Parallel::ForkManager::Child');
        say "child $_ says hi!"
   }) for 1..3;


DESCRIPTION

When the parent the Parallel::ForkManager manpage object forks a child process, its forked incarnation consumes this role. The role doesn't do much: it changes the returning values of is_child and is_parent in the way you'd expect, change start so that it'd die if called from within the child, and change the implementation of finish to potentially send data back to the parent process.


AUTHORS


COPYRIGHT AND LICENSE

This software is copyright (c) 2018, 2016, 2015 by Balázs Szabó.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026