Robert's Perl Tutorial
The Golden Rule of Comparisons
They may be odious, but remember the following:
- if you are testing a value as a string there should be only letters in
your comparison operator.
- if you are testing a value as a number there should only be non-alpha
characters in your comparison operator
- note 'as a' above. You can test numbers as string and vice versa. Perl never complains.