--- Stephen Neu <[EMAIL PROTECTED]> wrote:
> :> exec $cmd, $lookFor, @{$LOGS[$_]} unless $pid=fork; # fork new
>
> I might be off my rocker, but do you want that to say...
> unless $pid == fork; # equality, not assignment...
> perhaps? If I'm off base, feel free to tell me to get lost.
Not in this case.
It's a snip from a code segment I posted, which saves the process ID of
the child spawned into $pid (or 0 if it's the parent).
That way you can do a waitpid() with $pid in the parent to reap zombies.
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/