$parent = open PROC, "someProg|"; while(){ if(childIsBorn){ push(@children, "PIDofChildProc"); } }