http://www.perlmonks.org?node_id=957475


in reply to Hash Keys (strings or numbers?)

When working with databases I've learned (through past mistakes) to always use '$key += 0' on numeric field results to ensure they don't get quirky string representations.