in reply to Some tricky array/hash work

I suspect that there are a lack of replies to your post for several reasons: These are just a few problems. Sharper eyes than mine will certainly find more. You should probably consider these suggestions, rework your code, add more details defining your problem and post the revised version as an update. The more you do in preparing your post, the more likely that others will respond to it.

"Make everything as simple as possible, but not simpler." -- Albert Einstein