|| returns the first operand, which is True in a Boolean context. The remaining operands are not evaluated.
say 10 || 0; # 10 say 0 || 10; # 10
Science, Programming, Electronics, Languages
N. B. Perl 6 has been renamed to Raku. Click to read more.
|| returns the first operand, which is True in a Boolean context. The remaining operands are not evaluated.
say 10 || 0; # 10 say 0 || 10; # 10