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

I need to Hit Enter while running a .exe file from perl which genreates me a .conf after hitting Enter.
How to hit "enter" through perl.??

or is my question is looking weired :(

when i run the script it is asking me for press any key or hit enter in the middle of the Script

Replies are listed 'Best First'.
Re: Need Command to Hit Enter
by GrandFather (Saint) on May 19, 2009 at 05:21 UTC

    Win32::GuiTest will do it for you on Windows.


    True laziness is hard work
Re: Need Command to Hit Enter
by codeacrobat (Chaplain) on May 19, 2009 at 05:23 UTC
    Have you tried echo?
    system q{echo | perl -e \"<STDIN>\"}

    print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});
Re: Need Command to Hit Enter
by bichonfrise74 (Vicar) on May 20, 2009 at 01:18 UTC
    Can you try something like this?
    <>; Generate_conf_file();