Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Simple if Statement Not Acting Right?

by Roger (Parson)
on Aug 18, 2005 at 01:01 UTC ( #484651=note: print w/replies, xml ) Need Help??

in reply to Simple if Statement Not Acting Right?

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.

Replies are listed 'Best First'.
Re^2: Simple if Statement Not Acting Right?
by o2bwise (Scribe) on Aug 18, 2005 at 01:10 UTC
    That's it!!! Thanks, man!

    I just learned something. Nice simple test.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://484651]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2022-12-06 21:00 GMT
Find Nodes?
    Voting Booth?

    No recent polls found