Is a perl object stored in its entirety more than once (data, methods and all)?

Just the data. The methods go in the symbol table for the class.

What about hash keys- are they duplicated for each object of the same type?

Yes.

What about hashes (objects of the same type) that have asymmetrical numbers of keys)-- ie., not fully populated?

Doesn't matter. Nothing is shared between objects of the same type except the fact that they are both marked as belonging to the same class. Other than that, they don't even have to the same data type.

What about objects based on hashes versus arrays???

It doesn't matter. All the answers are the same.


In reply to Re: Perl Objects, Internal Representation -- How?? by perrin
in thread Perl Objects, Internal Representation -- How?? by bratwiz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.