> Minor point; this won't catch an error from fork(). If fork() fails, > it returns undef, and the test: > (0 == $pid) > Will be true, even if $pid is undef.
Damn, that's right -- thanks, Bob. *GOOD* point to make. undef() *always* evaluates to zero in a numeric context such as == Rather, I should have said: if ($pid=fork()) { # I'm the parent # ... code } elsif (defined $pid) { # I'm the child # ... code } else { # there was an error # ... code } __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]