If you want to do that, use threads instead of processes.
Are you sure you understood how fork works?
Perl 6 in German
In reply to Re: Mangled Forks by moritz in thread Mangled Forks by mungohill