Well, amongst the other minor errors, the most important thing I need to know is, are you indeed exiting after the child task, or are you letting a child roll forward
into parent-only code? Put an "exit" or "die" at the end of your inner block.
-- Randal L. Schwartz, Perl hacker