- or download this
Say you have a script called foo and a file of configuration options c
+alled foo.xml containing this:
</p>
...
<address>10.0.1.103</address>
</server>
</config>
- or download this
use XML::Simple;
my $config = XMLin();
- or download this
use Data::Dumper;
print Dumper($config);
- or download this
{
'logdir' => '/var/log/foo/',
...
}
}
}
- or download this
print $config->{logdir};
- or download this
print $config->{server}->{kalahari}->{address}->[1];