in reply to Re^2: passing params to an exe in a perl script
in thread passing params to an exe in a perl script

You could, of course, accept "the prompt as well as the result as part of the return value" and then remove the prompt -- with the likes of =~ s///;, among other possibilities.