My script reads a command from a serial log and branches on it with if ($cmd == "start") { ... } elsif ($cmd == "stop") { ... }. The first branch runs for every command, including stop and reset. In another place, sort @readings puts 100 before 25 and 9 last.
I assume both problems are related to how Perl compares values. What is the rule?




