good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: XML::Simple - storing/retrieving 2 tables into 1 XML fileby maspalio (Scribe) |
on Sep 11, 2008 at 10:07 UTC ( [id://710570]=note: print w/replies, xml ) | Need Help?? |
It seems like your structure is not exactly the way you are expecting it to be. You'll want to use a module like Data::Dumper::Simple to check it out. This said, just change: foreach $e (@{$data->{Phones}}) into: foreach (@$data) { my $e = $_->{Phones}; and the magick occurs ;^) HTH.
In Section
Seekers of Perl Wisdom
|
|