Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: unexpected STDINby GhodMode (Pilgrim) |
on Apr 30, 2011 at 14:28 UTC ( [id://902205]=note: print w/replies, xml ) | Need Help?? |
+1 ... That's right. I got the exact effect of the misplaced parentheses wrong. It will actually work if the response is 'y' because that parenthesized expression will always yield 'y'. I might have gotten the reason for that effect right. Since 'or' is a logical operator, it evaluates the truth of the two operands. Since the first one is not an empty string, it's true, so the result of the expression is the first string, not just true like I originally stated.
In Section
Seekers of Perl Wisdom
|
|