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


in reply to How do I have Perl send the password to a program that prompts for a password

Instead of using backtick, try using either system or opening the command as a pipe. Both of those should allow for greater control than backtick.