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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |