- or download this
<hosts>
<host name="jimmy">
...
<location>hell</location>
</host>
</hosts>
- or download this
use XML::Simple;
use Data::Dumper;
...
# read XML file
my $data = $xml->XMLin("/tmp/hosts.xml");
print Dumper($data);
- or download this
$VAR1 = {
'host' => {
...
}
}
};