in reply to Re^2: Syntax for casting map to a hash or an array
in thread Syntax for casting map to a hash or an array

Nope, one level too many of referencing / deferencing. See my example above.

With this kind of thing it's best to strip it down to the innermost element and print its output with a data dumper. Then when you understand what is going on, add a layer, repeat. Trying to get at it from the outer edge when you are confused is a bit like flailing. A methodical approach is most effective.


The way forward always starts with a minimal test.
  • Comment on Re^3: Syntax for casting map to a hash or an array