$session_parent->cmd("telnet $cienaIP"); $session_parent->waitfor('/username: $/i'); $session_parent->print($username); # $session_parent->print('username'); I've tried this # $session_parent->cmd($username); I've tried this # $session_parent->login($username,$password); I've tried this # I've tried very long regex expressions thinking that maybe I need to match # the whole expression "Trying x.x.x.x Use configured....username: " output # but that hasn't helped either.