in reply to Re^2: return the output to the Parent script
in thread return the output to the Parent script

If you want to pass data around in perl data structures, turn your script into a module, then you can ordinarily return data from it.