downer has asked for the wisdom of the Perl Monks concerning the following question:
i'd like to be able to iterate through each of the entries in the 'friend' field, and handle each individually. the problem is, i have no idea how to do so. There is a difficult number of references here, and i have no idea what to foreach. can anyone help?$VAR1 = { 'ID' => 'booshoe37', 'ut_response' => [ { 'friend_list' => { 'friend' => [ { 'fri +end_count' => '97', 'use +r' => '4Article1', 'vid +eo_upload_count' => '0', 'fav +orite_count' => '26' }, { 'fri +end_count' => '29', 'use +r' => 'Annberly14', 'vid +eo_upload_count' => '6', 'fav +orite_count' => '255' }, { 'fri +end_count' => '97', 'use +r' => 'DamiansChannel', 'vid +eo_upload_count' => '3', 'fav +orite_count' => '21' }, { 'fri +end_count' => '3', 'use +r' => 'MaddieEgan', 'vid +eo_upload_count' => '1', 'fav +orite_count' => '0' }, ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Seeking some noob wisdom with XML::Simple
by bobf (Monsignor) on Feb 27, 2008 at 04:47 UTC | |
|
Re: Seeking some noob wisdom with XML::Simple
by hipowls (Curate) on Feb 27, 2008 at 04:37 UTC |