I don't really have a good handle on what you want to do or really the timing of the whole operation. Having child.pl do something while main.pl is executing seems a little odd.
Why not call a routine (the code in child.pl) that returns "Something" or "", and act on that?