in reply to Re: true/false condition - what am I doing wrong?
in thread true/false condition - what am I doing wrong?

Did you mean 'do' block? Because using your example I get the following warnings:
Useless use of anonymous hash ({}) in void context at test.pl line 5. Useless use of anonymous hash ({}) in void context at test.pl line 5. Odd number of elements in anonymous hash at test.pl line 5.