in reply to Running another program

Perhaps what you want is to do open(FH, $cmd);. You can then read the output of the commands from FH.