Use || for assigning to a variable:
$a = $b || $c
Use "or" to control program flow:
$a = $b or die 'error: $b is unexpectedly false'
Mnemonic: || is a symbol like variables and numbers are, while "or" and "die" are both english words.
(source, source)
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.