The $pid is the process ID created by the fork() if it is successfully created. The if(!pid) should be if($pid). I think it is just a typo. You should always use strict when you write Perl script.
Taywin
Posting Maven
2,633 posts since Apr 2010
Reputation Points: 275
Solved Threads: 375
Skill Endorsements: 17