2 ms·
It's worth noting that in Perl the 'or' and 'and' operators are not equivalent to || and &&. For instance, they have super low operator precedence: my $varia
by pyre 13y ago
It's worth noting that in Perl the 'or' and 'and' operators are not equivalent to || and &&. For instance, they have super low operator precedence:
my $variable = 0 or 1;
Would result in $variable == 0 because it really looks like this:
(my $variable = 0) or 1;
I allowed myself to get burned by this once because I didn't read the fine print. ^^;;