Different accounts may have different prompts, so if your regex is working for one system, that doesn't mean it should work for another system.
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
If you can't give any details on where the process goes wrong, don't expect many useful answers from us. All we can do is guess -
you might get lucky and someone will guess right. But having people have to guess isn't very efficient.