in reply to incrementing hash values

As others have pointed out, you probably should use a hash of arrays to store the values.

I think the problem you are encountering, has to do with the representatio of floating point numbers. 100.0000001 may or may not be represented different internally as,say, 100.0000002, so you have no garantee that the keys will differ.

Paul

Replies are listed 'Best First'.
Re^2: incrementing hash values
by Aristotle (Chancellor) on Dec 24, 2004 at 13:38 UTC

    But his until !defined $hash{$key} fails so long as incrementing does not change the stringified value of $key. He might get an infinite loop, but it can't be the reason for entries in the hash getting overwritten.

    Makeshifts last the longest.