Other than being slightly misleading, there's nothing obviously wrong with his use of $login_output. He's capturing the return value of a function call, which is generally a good practice. If he were mixing $ssh->run_ssh() and $ssh->login(), then your critique would be valid.