in reply to Re^3: Forced to modify perl telnet script to use both telnet and ssh
in thread Forced to modify perl telnet script to use both telnet and ssh
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 Section
Seekers of Perl Wisdom