in reply to open(TO, "|-") is a bad file name?
my $id = fork; if( not $id ) { #child 1, assuming no errors exit; } my $id2 = fork; if( not $id2 ) { #child 2,etc exit; } #parent exit; [download]