in reply to
Cannot pass arg from perl to expect
I can think of two modules that might help you so you don't have to rely on another program.
Expect
Net::Telnet
Or, inside expect, don't expect (pun intended) it to know that $host is what is passed in, use $argv (If I remember my Expect right).
Comment on
Re: Cannot pass arg from perl to expect
In Section
Seekers of Perl Wisdom