o2bwise has asked for the wisdom of the Perl Monks concerning the following question:
And here is my TEST output:print TEST "\n\nJust before if statement:\n"; print TEST "Password entered:\t\t$password\n"; print TEST "Username entered:\t\t$userName\n"; print TEST "Hash value for key $userName:\t$usernameInfo{$userName}\n" +; if ( $password eq $usernameInfo{$userName} )
I am looking RIGHT AT the frigging strings that I am comparing. They are identical. And yet...the conditional does not return a true. It goes to the else section.Just before if statement: Password entered: phaEdrus3 Username entered: Tony Barbieri Hash value for key Tony Barbieri: phaEdrus3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple if Statement Not Acting Right?
by Roger (Parson) on Aug 18, 2005 at 01:01 UTC | |
by o2bwise (Scribe) on Aug 18, 2005 at 01:10 UTC | |
|
Re: Simple if Statement Not Acting Right?
by anthski (Scribe) on Aug 18, 2005 at 01:10 UTC |