|Problems? Is your data what you think it is?|
Re: Assign 2D-Arrays to a hash using a keyby mmartin (Monk)
|on Feb 21, 2012 at 16:59 UTC||Need Help??|
Hey guys thanks for your help,
Ok so the thing with the array that it might have more then one value for a particular key, I was able to work around. Since the "values" that would have multiples were integers I just simply added them together then re-assigned the "temporary" array back to the original empty array. So that part is fixed...
So for assigning to a hash I was able to find some older scripts I wrote that had hashes and was able to use that and figure it out.
So since there were 5 different 2D-Arrays I came up with this to build the hash:
And since the arrays are already presorted when I collect the data it made it much easier to build the hash and not have to worry about comparing the Key/identifiers...
Thanks for your help..!