http://www.perlmonks.org?node_id=988631

anshumangoyal has asked for the wisdom of the Perl Monks concerning the following question:

I have a perl script which calls an executable (windows exe) named RunMe.exe. I am calling this .EXE using `RunMe.exe <args>`. Now when this executable is done with processing, it has to be stopped with "Enter". How can i do this automatically in script that it runs this .EXE and gives the output in a variable "@Result" and exits (by sending enter) without any human envolvement?
my @Results = `RunMe.exe <args>`; # My Program waits for input here which I dont want to.