Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: using user input with net::ssh:expect

by alexm (Chaplain)
on Aug 11, 2009 at 18:52 UTC ( #787734=note: print w/replies, xml ) Need Help??

in reply to using user input with net::ssh:expect

I tried your code and got the same weird error. Then, I chomped $unme and it worked fine:

chomp(my $unme = <>);

Note that I prefer using chomp over chop, but using the latter won't make a difference in this case.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://787734]
[zentara]: Y succeeds X then preceeds Z . There is a deep meaning in that :-)
[zentara]: unicorns have a Z chromosome
shmem lives in a city which has the unicorn in its emblem
[LanX]: Dortmund !

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-03-30 16:57 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (362 votes). Check out past polls.