|No such thing as a small change|
OO Design Question with Hashes of Arraysby ahackney (Initiate)
|on Jun 26, 2013 at 01:29 UTC||Need Help??|
ahackney has asked for the
wisdom of the Perl Monks concerning the following question:
I'm new to OO in Perl. I have a class that I have created. In this class, I need an attribute that is a hash whose members contain an array.
I have gotten the hash to work, but making the contents of the hash an array is a mystery to me.
I'm wondering if I need another class that this class will have as an attribute?
I want the aclsMissingFromMaster hash to contain an array. Should I just make a class ACLS with attributes being arrays and make that class object an attribute of this class? Or is there a way to make the above class contain a hash containing arrays.
eg: I am trying to make the following hash an attribute of the above class.
Thanks for your wisdom!