![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: code explanationby tmharish (Friar) |
on Mar 06, 2013 at 14:46 UTC ( [id://1022015]=note: print w/replies, xml ) | Need Help?? |
First off please use code tags so your code is readable - I have done this for you this time around.
Documentation for fork will show you that the fork call returns the pid of the forked process to the parent and 0 to the child. This is used above to run the parent through the if and the child through the else above. The following should help you understand the rest: This code essentially creates a process which executes a non-perl program on a timeout.
In Section
Seekers of Perl Wisdom
|
|