http://qs321.pair.com?node_id=1219834


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:  <%-{-{-{-<