http://www.perlmonks.org?node_id=991190


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.

  • Comment on Re^4: Forced to modify perl telnet script to use both telnet and ssh
  • Download Code