in reply to Re^8: Interesting read: "Why I use perl and still hate dynamic language weenies too"
in thread Interesting read: "Why I use perl and still hate dynamic language weenies too"

SV (scalar), AV (array), HV (hash), GV (glob), etc are different, independent structures. Different opcodes are used to interact with them. For example, padsv is used to fetch an SV lexical, while padav is used to fetch an AV lexical.

SVs can be IV (signed int), UV (unsigned int), NV (decimal number), PV (string), RV (reference), etc. It can even be certain combinations of those. What you said in your earlier post does apply to scalars.

Replies are listed 'Best First'.
Re^10: Interesting read: "Why I use perl and still hate dynamic language weenies too"
by dewey (Pilgrim) on Apr 17, 2007 at 18:50 UTC
    So Perl is statically typed?

    ~dewey

      I confused Static vs Dynamic typing with Weak vs Strong typing in my earlier post.

      To answer your question, some elements of Perl are statically typed, and some elements of Perl are dynamically typed.

      The question "Is X strongly typed?" is the invalid one. This post by Dominus includes "eight different and incompatible definitions of 'strongly typed language'" he found.

        Wow. OK, thanks for the links. I guess it becomes very hard to discuss anything on this thread if we don't even actually have an agreed-upon definition for strong/weak/static/dynamic typing...

        ~dewey