Hello monks,
though I've been reading PM for quite a while it's the first time to ask a question now. Please forgive me if I post in a wrong section.
I'm trying to dump a Perl datastructure to a file in order to save on disc for
(a) reuse on subsequent runs of the scripts
(b) enable backups
Backups might be restored to a different mashine as well as moved between testing and live system.
In order not to reinvent any wheel I'm playing with XML::Dumper which works fine on my testing system.
Opposed to the docs the dumped structure contains memory_address="xxxx" attributes like this:
Am I doing anything wrong calling XML::Dumper like this?<perldata> <hashref memory_address="0x8634534"> <item key="COOKIE"> <arrayref memory_address="0x8634438"> <item key="0"> <hashref memory_address="0x862c4a4"> <item key="items"> <arrayref memory_address="0x862c48c"> </arrayref> </item> <item key="keys"> <arrayref memory_address="0x862c468"> <item key="0">name</item> </arrayref> </item> <item key="matchtype">non-empty</item> <item key="output_filter">2</item> </hashref> </item> bla...
Question:use XML::Dumper; my $xmlfile = 'filter.xml'; my $dump = new XML::Dumper; $dump->pl2xml( $input_filter, $xmlfile );
In reply to XML::Dumper - Dump to file cross-server safe? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |