That doesn't tell anything new, does it? It works for one system, it doesn't work for the other. Most likely, something is different between both systems - or in the network between them. Your program works for one system, so it doesn't seem your program contains any fatal bugs. And nor do you get any errors, so the Perl site seems to be ok. We don't know your network, we don't know your machines.
in reply to Re^2: Net::Telnet - cant able to connect from public IP to public IP
in thread Net::Telnet - cant able to connect from public IP to public IP