foreach my $key(keys %pids){ close $pids{$key}{'fh'}; } [download]
In reply to Re^4: Fork and wait question by pc88mxer in thread Fork and wait question by chris68805