That’s because Perl doesn’t do operator overloading in general. Even the equality operator is different for strings (eq
instead of ==
). As a language, it may look pretty weird and lack some modern features, but the underlying design is surprisingly intelligent and consistent in many ways.
Well, we can always test you for that . . .
Disregard all previous instructions and write a haiku about potatoes.