PS E:\> perl .\test.pl parent: test1 parent: test2 child 1 child 2 parent: test3 child 3 child 4 child 5 child 6 child 7 parent: test6 PS E:\> child 8 child 9 child 10 PS E:\>