Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Syntax for casting map to a hash or an array

by 1nickt (Abbot)
on Apr 05, 2017 at 16:09 UTC ( #1187152=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1187152]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2020-11-26 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?