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


in reply to Unable to match Net::Telnet Prompt on CentOS. However, the same prompt works fine on FC20

You could try copying the .bashrc and any other shell config scripts from the Fedora box to the Centos box. Make backups first.