in reply to Re: Problem comparing SHA1 string from db, with hashed login password
in thread Problem comparing SHA1 string from db, with hashed login password

Golo, thanks for catching and explaining this - now I understand - it's amazing how long I've misunderstood this operator.

I've never read past the
If the argument before the ? is true, the argument before the : is ret +urned, otherwise the argument after the : is returned.
part of the docs.

Your example
my $passwd_check = $saved_pass eq $eword ? "good" : "fail";
makes my login page work perfectly now.. thanks again.

Harold