in reply to Forced to modify perl telnet script to use both telnet and ssh
Proceed with Telnet as it is already in the script and you are constrained from rewriting the script. What exactly is the problem you are experiencing with Telnet?