Please go through your script adding statements like this:
if ($device->{supportsSSH}) {SSH code} else {Telnet code}
After a while you may notice that blocks of code keep getting repeated. Please consider refactoring them into sub {}'s as you work through your script.
In reply to Re^4: Forced to modify perl telnet script to use both telnet and ssh
by philiprbrenan
in thread Forced to modify perl telnet script to use both telnet and ssh
by essej1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |