Fennec imports Child.pm which brings in the 'child {}' function.
- Forking is hard to get right
- Child is an OO interface to fork
- With Child forking is easy
As the above example shows, you do not need to check if you are parent
or child, you also do not need to worry about closing your child
process. The child process will run the codeblock, then it will exit.
This is a list of other methods the child object has available.
The $parent object also has some helpful methods