in reply to XML::Simple => XMLout()
ForceArray by itself isn't enough. Here's what I got:my $config = XMLin($foo, KeyAttr => 1, ForceArray => 1);
#!/usr/bin/perl use strict; use warnings; use XML::Simple qw(:strict); my $foo = '/root/Desktop/log.xml'; my $config = XMLin($foo, KeyAttr => 1, ForceArray => 1); use Data::Dumper::Concise; print Dumper($config);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Simple => XMLout()
by Anonymous Monk on Sep 07, 2011 at 18:07 UTC | |
by Khen1950fx (Canon) on Sep 07, 2011 at 18:36 UTC |