in reply to Numeric as hash key returns undef...
Are you certain that your hash keys are what you think they are? If you're doing floating-point math, you may end up with keys that have more decimal places. Even an integer like 5.00 might be stringifying as 5.00000001 if there's FP math involved.
Try using Data::Dumper on your hash to see if that's the case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Numeric as hash key returns undef...
by Joost (Canon) on Oct 24, 2006 at 21:22 UTC | |
by Anonymous Monk on Oct 24, 2006 at 21:40 UTC | |
by diotalevi (Canon) on Oct 24, 2006 at 21:46 UTC | |
by journey (Monk) on Oct 25, 2006 at 13:36 UTC |