![]() |
|
No such thing as a small change | |
PerlMonks |
Re^4: How to use a json string with nested array and nested hash elements?by Anonymous Monk |
on Feb 04, 2013 at 23:02 UTC ( #1017025=note: print w/replies, xml ) | Need Help?? |
Thanks for the code samples! It's exactly what I needed.
I'm looking at what aitap wrote and what you wrote and I see one difference: aitap & 7Stud: my @jsonarray = @{$decoded_json->{strarray}}; Anonymous Monk: my $strarray = $decoded_json->{strarray}; I am surprised by the use of a $variable (string) instead of an @variable (array). I expected to need the same variable as aitap and 7Stud mentioned. I will need to restudy the variables and references, it's been nearly 6 years since I last wrote programs. Thank all of you for the explanations and examples. You have been very helpful.
In Section
Seekers of Perl Wisdom
|
|