http://www.perlmonks.org?node_id=381307


in reply to Re: == and != don't work as expected
in thread == and != don't work as expected

Perl is a weakly typed language.
<mini_rant>

No, it's not. It just doesn't associate the type with the name, as you might expect. Try coercing a hash to an array in place or treating a scalar as an array, for example.

C's typing system is only slightly more advanced than bare assembly code.

</mini_rant>