in reply to numeric hash keys
Read the error message again: You are passing the string "parent mass" to int, that's the source of the error message.
Hash keys are always stringified, but like any string Perl will automatically convert it back to a number if used in a numeric context (if it can).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: numeric hash keys
by AWallBuilder (Beadle) on Mar 06, 2015 at 13:55 UTC | |
by Corion (Patriarch) on Mar 06, 2015 at 14:08 UTC | |
by Anonymous Monk on Mar 06, 2015 at 14:04 UTC |