Jeff Pang schreef:
>> 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;

  ++$|;
  defined( my $pid = fork ) or die "Can't fork:$!";

If you follow the thread, you should see that that is what I asked
about:
1. What good does a defined() in a void context?
2. Why is there no die()?

news:[EMAIL PROTECTED]

-- 
Affijn, Ruud

"Gewoon is een tijger."


-- 
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