If the argument before the ? is true, the argument before the : is returned, otherwise the argument after the : is returned. #### my $passwd_check = $saved_pass eq $eword ? "good" : "fail";