#!/usr/local/bin/perl
use XML::Simple;
my $ref = XMLin('foo.xml');
#also with my $ref = XMLin();
use Data::Dumper;
print Dumper($config);
print $config->{logdir};
are you asking a question about why your perl script does not work? if so - better to ask in the perl forum, i'd guess.
i can't help feeling that you're using element attributes as data values too. i don't think that's great xml strategy. would not the following be more normal?:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.