in reply to Re^2: How to give an EOF from windows Standard input?
in thread How to give an EOF from windows Standard input?

Depends whether you want the console window, which is what is generated for perl, or a cmd.exe shell. If it is a cmd.exe shell you want then run your perl script from a short-cut or association with:
%comspec% /k perl c:\gash.pl
where c:\gash.pl is the path to the script. It will run the script then give you a prompt.