Skip to content
Snippets Groups Projects
Commit d5c25b3f authored by Thibaut Hourlier's avatar Thibaut Hourlier
Browse files

Fix precedence problem by replacing or with ||

Since Perl 5.22, it warns of possible precedence problem it cases
like : return $value or die('Sad');
return $value is tested, not $value. It can be fixed by either using
|| or by using () around the test.
The problem was already there in earlier versions of Perl but no
waring was issued.
parent 95d83ed4
No related branches found
No related tags found
2 merge requests!1Fix precedence problem by replacing or with ||,!1Fix precedence problem by replacing or with ||
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment