Hi,
What is the difference between |= and ||=?
my $var |= 1; my $var2 ||= 1;
In the example above, both $var and $var are set to the value 1. So what is difference between the two operators?
Many thanks in anticipation.In reply to What is the difference between |= and ||=? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |