in reply to your Perl bug Achilles heel
What I also tend to get wrong sometimes is the difference in precedence between or and ||, especially in return statements. Usually when I pretend to be terse and write:
I don't do this often, but when I do, it can take a long time to debug, because that code looks deceptively sensible.sub is_foo_or_bar { return foo($x) or bar($x) } # no! use || here
|
|---|