in reply to Re^4: How to return a two dimensional array from a function in Perl?
in thread How to return a two dimensional array from a function in Perl?
If you can find a context where &&/|| produce an intended result and replacing them with and/or produces a different (incorrect) result, that would be remarkably informative
Easy. Consider rewriting
if ($a == 1 or $b == 2) { ... }
so that a variable is used to hold the condition.
my $cond = $a == 1 or $b == 2; XXX if ($cond) { ... }
Why write the same expression two different ways depending on context?
|
|---|