• nyan@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    0
    ·
    23 days ago

    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.