will_ has asked for the wisdom of the Perl Monks concerning the following question:
The following code gets a warning: Possible precedence issue with control flow operator
Is this better? If not, what's the best way to write it?
But I've always used or for control flow like "die" or "return", and || for logical expressions where the result doesn't affect which path the program takes (in that line).return something() or croak "something didn't work";
Is this better? If not, what's the best way to write it?
return something() || croak "something didn't work";
ɹǝʞɔɐɥ lɹǝd ɹǝɥʇouɐ ʇsnɾ
Back to
Seekers of Perl Wisdom