in reply to Situation where warning "Found = in conditional, should be" seems obsolete
Personally I tend to avoid this C syntax outside one liners, where readability and maintenance are no issues.
Now this warning is intended for conditionals.
So if you don't like to straighten the syntax, you are free to disable this warning.
Especially chaining both operators without parens makes me second guessing precedence
$_ % 2 or $has_even = 1 and last
I don't wanna puzzle over such code.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Situation where warning "Found = in conditional, should be" seems obsolete
by LanX (Saint) on Feb 06, 2021 at 18:07 UTC |