Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: Iterate JSON File

by AnomalousMonk (Bishop)
on Aug 03, 2018 at 15:27 UTC ( #1219834=note: print w/replies, xml ) Need Help??

in reply to Re^2: Iterate JSON File
in thread Iterate JSON File

You seem to think that  $kind is a hash reference, but it isn't; it's a string, and strings (a.k.a. "symbolic references") can't be dereferenced under strict 'refs'. It's important to know the nature of the data you're dealing with. To visualize the type and value (update: and structure!) of data, use a module like Data::Dumper (which is core, so it should already be installed), or Data::Dump (which I like more, but which is not core). So maybe something like

use Data::Dumper; ... for my $kind (@{$status->{info}}){ print Dumper $kind; ... }
to get started. Once you know where you are, it will be easier to see the way forward.

Give a man a fish:  <%-{-{-{-<

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2021-02-25 13:32 GMT
Find Nodes?
    Voting Booth?

    No recent polls found