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


in reply to Re^3: Use a perl variable on a command that prompts for input
in thread Use a perl variable on a command that prompts for input

Did you test it in the shell before embedding it in your perl script as suggested? If so, did it work there?

If you can pipe input at the shell prompt you can almost certainly do so in the perl script. Otherwise you'll probably have to resort to Expect or similar. Good luck.