Hi, I have written a module which integrates both SSH & Telnet; it's an overlay which uses both Net::Telnet and Net:SSH2; it's called Control::CLI. Maybe that might help you.
I made it because I needed it to run on Windows systems, where I was not able to get expect to work.