in reply to Re: Thoughts on using and, or, and not over && || !?
in thread Thoughts on using and, or, and not over && || !?
In addition to the potential predecence problems with or,
Depends on context. While or is more likely to cause problems within an expression (aside from not being as visually distinctive), or is usually used for flow control because it's more likely to solve precedence problems in that situation. Compare
withopen my $fh, '<', $qfn || die $!;
open my $fh, '<', $qfn or die $!;
|
|---|