in reply to Simple Array
What kind of values? Numeric? Then should '3', '3.0' and '3.00' be considered 'the same'?
If so, then use sprintf to create stringified fixed decimal numbers before storing them in a hash, or int() if they should be integers anyway.