Comparison of strings such as filenames should use the cmp operator which will return -1, 0 or +1 to show which value comes first.
Comparison of numerical values should use <=> which will also return -1, 0 or +1 to show which value is bigger.
Zero meaning the two values are equal, of course
In reply to Re: hash compare
by SuicideJunkie
in thread hash compare
by sanku
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |