|XP is just a number|
Multiple numeric not or compare in if statementby RedJeep (Sexton)
|on Jul 02, 2020 at 04:41 UTC||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!