in reply to Perl, Telnet, and No Output
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().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl, Telnet, and No Output
by DavisTasar (Initiate) on Aug 13, 2014 at 19:25 UTC |