in reply to unique data in dynamic hash

Um ... you don't, perl does that for you. Hash keys, by definition, are unique.