Month: November 2014

Fix strange behaviour of OR operator in Perl

Using the OR operator in Perl while doing an assignment is not a good idea. The Perl documentation [1] states that the precendence of OR is lower that of ||. If you are not aware of this the results will leave you scratching your head. Look at the examples below that should all return the same. more