The methods login() and cmd() use the prompt setting in the object to determine when a login or remote command is complete. Those methods will fail with a time-out if you don't set the prompt correctly.Net::Telnet just doesn't know where the command output starts and where it ends, so it can't return you anything.
When mode is "return" then the method generating the error places an error message in the object and returns an undefined value in a scalar context and an empty list in list context. The error message may be obtained using errmsg().
In reply to Re: Perl, Telnet, and No Output
by aitap
in thread Perl, Telnet, and No Output
by DavisTasar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |