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.
In reply to Re: using user input with net::ssh:expect
by alexm
in thread using user input with net::ssh:expect
by daudlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |