P
Perl Learner
I am storing all the data from a HUGE file into 1 hash with long key
names.
for ex. my key would be something like
NAMEK__PROPERTYA__RELATIONB__SET3__CHARACTER4__CONDITION__TABLE
I can also make 7 hashes, one inside the other:
HASH{NAMES}{PROPERTIES}{RELATIONS}{SETS}{CHARACTERS}{CONDITIONS}{TABLES}
which one would be more efficient ?
I was using 1 big hash instead of cascaded hashes as it would be a lot
simpler. And also, sometimes, my data would stop at some random
point..
for example, for some NAMEs, I might only have
NAMEK__PROPERTYA__TABLE or even NAME__PROPERTYJ, basically it might or
might not have all the possible "sections"
That's why I am using a single hash as it would take care of all
conditions.
I just wanted to ask you guys which one would be more efficient.
thanks.
names.
for ex. my key would be something like
NAMEK__PROPERTYA__RELATIONB__SET3__CHARACTER4__CONDITION__TABLE
I can also make 7 hashes, one inside the other:
HASH{NAMES}{PROPERTIES}{RELATIONS}{SETS}{CHARACTERS}{CONDITIONS}{TABLES}
which one would be more efficient ?
I was using 1 big hash instead of cascaded hashes as it would be a lot
simpler. And also, sometimes, my data would stop at some random
point..
for example, for some NAMEs, I might only have
NAMEK__PROPERTYA__TABLE or even NAME__PROPERTYJ, basically it might or
might not have all the possible "sections"
That's why I am using a single hash as it would take care of all
conditions.
I just wanted to ask you guys which one would be more efficient.
thanks.