in reply to Re^2: Fork and wait question
in thread Fork and wait question

Where do you put the close for the file handlers?

Replies are listed 'Best First'.
Re^4: Fork and wait question
by pc88mxer (Vicar) on Jun 12, 2008 at 19:05 UTC
    Use it instead of the waitpid call:
    foreach my $key(keys %pids){ close $pids{$key}{'fh'}; }