No such thing as a small change | |
PerlMonks |
Multiple numeric not or compare in if statementby RedJeep (Sexton) |
on Jul 02, 2020 at 04:41 UTC ( [id://11118782]=perlquestion: print w/replies, xml ) | Need Help?? |
RedJeep has asked for the wisdom of the Perl Monks concerning the following question: Ok, this should be very basic. For the life of me I can't figure it out. I searched and searched. Maybe you can help? In one of my programs I found this wrong way
The above code is wrong, is bad, works sometimes. I know this is wrong. Trying to figure out the right way. I wrote the little test script below.
In the below script the multi-compare Option Equals works fine. But the multi-compare Option Not Equal does not work. Why? How to fix? For example, set $a = 77 and the Option Not Equal does not work. Thanks for the help!
Back to
Seekers of Perl Wisdom
|
|