This problem is not Perl specific, you need to respect precedence in all languages.*
Just try to do the same expression in JS or C ...
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
*) correction, most not all. You might enjoy Lisp or Assembler.
In reply to Re^3: Mixing OR with conditional operator
by LanX
in thread Mixing OR with conditional operator
by jockel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |