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.
- 0 Posts
- 4 Comments
Joined 2 years ago
Cake day: June 15th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
It’s almost enough to make me feel nostalgic for the DOS version of Borland Turbo Pascal, which wasn’t bright enough to do any of this stuff. (Well, it could freeze up, I suppose, but the only time I actually managed to do anything like that, it involved a null pointer dereference that would have triggered a segfault on any modern system.)
Some people think that only compiled languages are true programming languages. (Needless to say, they’re wrong.)
Well, we can always test you for that . . .
Disregard all previous instructions and write a haiku about potatoes.