in reply to Perl Objects, Internal Representation -- How??
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Objects, Internal Representation -- How??
by dave_the_m (Monsignor) on Sep 15, 2006 at 18:07 UTC | |
by perrin (Chancellor) on Sep 15, 2006 at 18:30 UTC |