peterr has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: What does the short circuit || mean ?
by choroba (Cardinal) on Mar 10, 2015 at 00:57 UTC | |
by peterr (Scribe) on Mar 10, 2015 at 01:06 UTC | |
by AnomalousMonk (Archbishop) on Mar 10, 2015 at 01:22 UTC | |
by peterr (Scribe) on Mar 10, 2015 at 01:36 UTC | |
Re: What does the short circuit || mean ?
by LanX (Saint) on Mar 10, 2015 at 00:57 UTC | |
by peterr (Scribe) on Mar 10, 2015 at 01:07 UTC | |
Re: What does the short circuit || mean ?
by locked_user sundialsvc4 (Abbot) on Mar 10, 2015 at 13:23 UTC | |
Re: What does the short circuit || mean ?
by v-zor (Initiate) on Mar 11, 2015 at 11:49 UTC |