in reply to
Slow Telnet Response ?????
I am using the same script to login into other server and there everything works fine. No issues at all.
From this we can conclude that the problem lies not with anything to do with perl but rather with some aspect of the remote server or your network connection to it. This is a task for the administrator of that remote system or the intervening network. Give them a copy of your script, details of all three machines and lots more diagnostic data than you've provided here.