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
to get started. Once you know where you are, it will be easier to see the way forward.use Data::Dumper; ... for my $kind (@{$status->{info}}){ print Dumper $kind; ... }
Give a man a fish: <%-{-{-{-<
|
---|
In Section
Seekers of Perl Wisdom