Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by alexm (Chaplain)
on Aug 11, 2009 at 18:52 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://787734]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2026-01-21 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (125 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.