in reply to What does the short circuit || mean ?

|| vs or is a matter of precedence.

update from perlop

Logical or and Exclusive Or

Binary "or" returns the logical disjunction of the two surrounding expressions. It's equivalent to || except for the very low precedence. This makes it useful for control flow:

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)

PS: Je suis Charlie!

  • Comment on Re: What does the short circuit || mean ?

Replies are listed 'Best First'.
Re^2: What does the short circuit || mean ?
by peterr (Scribe) on Mar 10, 2015 at 01:07 UTC
    Thanks Rolf. :)