Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I get the following as a JSON file. I thought it was an array of hashes, but apparently, it is not. How do I access it?
$VAR1 = [ { 'Lang4' => 'ok', 'Lang9' => 'well', 'Lang7' => undef, 'Lang6' => undef, }, { 'Lang4' => 'one', 'Lang9' => 'two', 'Lang7' => undef, 'Lang6' => undef, } ]
Do you have a good reference to spot the kind of datastructure I am in front of (for a non-Perl expert). Thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array of hashes?
by haukex (Archbishop) on Jan 04, 2021 at 17:25 UTC | |
by Anonymous Monk on Jan 04, 2021 at 17:42 UTC | |
by haukex (Archbishop) on Jan 04, 2021 at 17:49 UTC | |
by Anonymous Monk on Jan 04, 2021 at 19:08 UTC | |
|
Re: Array of hashes?
by 1nickt (Canon) on Jan 04, 2021 at 18:22 UTC | |
|
Re: Array of hashes?
by Bod (Parson) on Jan 04, 2021 at 17:26 UTC | |
by stevieb (Canon) on Jan 04, 2021 at 17:43 UTC |