I'm wanting to fully understand what the short circuit || means in the code below. I thought it was a short circuit for OR
my $ct = $part->contentType || 'text/plain'; $ct eq 'text/plain' || $ct eq 'text/html' or next; ..some code
In reply to What does the short circuit || mean ? by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |