Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Simple if Statement Not Acting Right?by Roger (Parson) |
on Aug 18, 2005 at 01:01 UTC ( [id://484651]=note: print w/replies, xml ) | Need Help?? |
Your print is not precise enough to catch the problem. It doesn't show you if any variable value you printed has empty space in it or not. Use print ".... [$userName]\n" and print "... [$usernameInfo{$userName}]\n" instead to be more precise. I suspect that your hash value has empty spaces at the end.
In Section
Seekers of Perl Wisdom
|
|