http://qs321.pair.com?node_id=11111352

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
return something() or croak "something didn't work";
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).

Is this better? If not, what's the best way to write it?
return something() || croak "something didn't work";

 

ɹǝʞɔɐɥ lɹǝd ɹǝɥʇouɐ ʇsnɾ