What model router is it that you're trying to configure? I had a couple Perl scripts that I used in the administration and configuration of the Cisco DSL routers, but they were the home models running the CBOS and not the standard Cisco IOS. However, they use Net::Telnet and seemed to invariably work without any problems, so maybe I can help you out.