Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Background: Short circuit and and or are semantically like if and unless in Perl, IIRC it's even the same op code.
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.
updateEspecially 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 In reply to Re: Situation where warning "Found = in conditional, should be" seems obsolete
by LanX
|
|