Dec 20, 2007, 2:53 PM
Post #1 of 3
My understanding is that i have to use array or hash as an internal data structure of my object. I can have another object (or a reference to an object as a part of my hash and it works). However if i want to have another array or a hash as a part of my object i can not store it in my anonymous hash field. For example, field1 of my has will have a string, field2 -> another object or a reference to an object, field3 -> array of strings or objects, field4 -> another hash. Is that possible?
More complex Objects
Or do i have to use something like Class::Struct? Is there anything else other then C++ like structs i can use (may be something similar to Java objects)?