Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: XML::Simple - storing/retrieving 2 tables into 1 XML file

by maspalio (Scribe)
on Sep 11, 2008 at 10:07 UTC ( [id://710570]=note: print w/replies, xml ) Need Help??


in reply to XML::Simple - storing/retrieving 2 tables into 1 XML file

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.

  • Comment on Re: XML::Simple - storing/retrieving 2 tables into 1 XML file

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://710570]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found