Keep It Simple, Stupid | |
PerlMonks |
Simple if Statement Not Acting Right?by o2bwise (Scribe) |
on Aug 18, 2005 at 00:53 UTC ( [id://484649]=perlquestion: print w/replies, xml ) | Need Help?? |
o2bwise has asked for the wisdom of the Perl Monks concerning the following question:
Hi, This one bigtime perplexes me. This is for an assignment. For now, I am applying a horrible username password utility. All I am doing is inputing username and password and checking it against the values in a flat file, which I am loading into a hash. I am using a simple if conditional and it seems it should be passing, but it isn't. Here is a snippet of the code: And here is my TEST output: 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. Does anyone know what the heck is going on??? Maybe I have to chomp something? Thanks In Advance, Tony
Back to
Seekers of Perl Wisdom
|
|