Thanks for the insight.
As you all said, the key to solving this is either to remove the brackets, or add them in the 3rd part of the statement or not using it in void context. I was aware of that, but thanks for explaining why it actually did that.
Merlyn, I noticed several of your posts urging not to use stuff (namely map) in void context. Could you explain why it is so "dangerous"?