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


in reply to need help to connect switch 192.168.1.2 using perl script.

I see "show running-config" and assume you mean a Cisco switch. If that's right, Net::Telnet::Cisco is a great place to start.

If you don't want to reinvent the wheel and can deal with a script that does A LOT MORE than just Telnet to Cisco switches, have a look at (shameless plug) Cisco Router Action Performing Perl Script