in reply to Parsing Array of arrays from json file
Hi,
Your program is well structured and you correctly are printing out the array to debug. But the dump shows that each record is itself an array of arrays, so you need one more level of dereferencing.
Change line 25 to
print "Translation for $record->[0][1] is $record->[0][ +0]\n";
Hope this helps!
edit: got the indices the wrong way around
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing Array of arrays from json file
by Anonymous Monk on Sep 12, 2021 at 10:24 UTC | |
by 1nickt (Canon) on Sep 12, 2021 at 10:38 UTC |