in reply to Parallel processing, sort of

Why do you need eval? Am I missing something?

if ($pid = fork) { # parent } elsif (defined($pid)) { exec "display -title %d/%f $fullfile"; } else { warn "Cannot fork: $!"; }

Replies are listed 'Best First'.
Re: Re: Parallel processing, sort of
by mephit (Scribe) on Sep 13, 2002 at 19:05 UTC
    Why do you need eval? Am I missing something?
    I guess that I don't. I more-or-less took that code directly from the Tk chatterbox client without really reading up on fork, and noticing the Camel's examples using  if ($pid == fork) ... Bad programmer! No pr0n for you! Ah, well, code and learn, or some junk. Thanks for the replies, all.

    --

    There are 10 kinds of people -- those that understand binary, and those that don't.