# global scope dist = "/archive/"; %warnings parameter off; ### allow parameter redefinition aa1 { environment = T; aa2 { Xlogin = "jimmy"; } } #### Invalid decl item: Was expecting parameter or macro or comment or warning but found "aa2 {" instead at /home/.../XMLConfigs/e.cfg line 11. #### #!/usr/local/bin/perl -w use strict; use Config::Scoped; use Data::Dumper; my $parser = Config::Scoped->new( file => 'e.cfg' ); my $config = $parser->parse; print Dumper($config);