in reply to Complex XML hash to csv
I read this like "foreach sheep in sheep_group print name_of_every_sheep_in_the_farm"foreach my $d (keys %{$doc->{'results'}{'result'}{'output'}{'products' +}{'product'}}) { print $doc->{'results'}{'result'}{'output'}{'products'}{'produ +ct'}{'image_link'} . "\n"; }
HtHforeach my $d (keys %{$doc->{'results'}{'result'}{'output'}{'products' +}{'product'}}) { print $d->{'image_link'} . "\n"; #UPDATE (was: $d{'image_link +'} ) spotted by choroba (thanks) .. i was sure i put }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Complex XML hash to csv
by Preceptor (Deacon) on Oct 23, 2015 at 09:43 UTC |