Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Answer: how do i redirect the output to a var

( #89743=categorized answer: print w/ replies, xml ) Need Help??

Q&A > input and output > How do I have Perl send the password to a program that prompts for a password contributed by dragonchild

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.

Comment on Answer: how do i redirect the output to a var
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2015-11-26 12:19 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (697 votes), past polls