Be very careful to end the child code with an exit, or your child may inadvertently leave the conditional and start executing code intended only for the parent process.While this is refering to an example in the book, it sounds as though it may also apply to your situation.
Hope this helps.
@a=split??,'just lose the ego and get involved!';
for(split??,'afqtw{|~'){print $a[ord($_)-97]} In reply to Re: Re: Help with waitpid and forking ?
by jlongino
in thread Help with waitpid and forking ?
by VicBalta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |