>
>I still don't understand what the line 
>
>>>> defined(my $pid = fork);
>
>is supposed to do. What does it do better than just 
>
>   my $pid = fork;

You should please always do an judgement for the 'fork' call's returning value.
It would be better:

my $pid = fork;
die "can't fork:$!" unless defined $pid;

HTH


--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to