TienLung has asked for the wisdom of the Perl Monks concerning the following question:
Many thanks in advance, and I look forward to many years at the monastery, I am really enjoying getting into Perl# create object my $xml = new XML::Simple(forcearray => 1); # read XML file my $data = $xml->XMLin("../services/xml/".$docid.".xml"); my $pageobj=$data->{page}; delete $data->{page}[$dat]; my $xmlO = $xml->XMLout($data); open FILE, ">../services/xml/".$docid.".xml" or die; print FILE $xmlO; close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array/hash question with XML simple
by VinsWorldcom (Prior) on Mar 13, 2009 at 13:43 UTC | |
by TienLung (Acolyte) on Mar 13, 2009 at 13:54 UTC | |
|
Re: array/hash question with XML simple
by weismat (Friar) on Mar 13, 2009 at 13:43 UTC | |
by TienLung (Acolyte) on Mar 13, 2009 at 14:11 UTC |