4 my $HELM_CONFIGURATION_DIR = $ENV{"HELM_CONFIGURATION_DIR"};
5 my $DEFAULT_HELM_CONFIGURATION_DIR = "@HELM_ETC_DIR@";
6 # this should be the only fixed constant
7 if (defined ($HELM_CONFIGURATION_DIR)) {
8 $configuration_file = $HELM_CONFIGURATION_DIR."/configuration.xml";
10 $configuration_file = $DEFAULT_HELM_CONFIGURATION_DIR."/configuration.xml";
13 $parser = new XML::Parser(Handlers => {Start => \&handle_start,
15 Char => \&handle_char});
18 $parser->parsefile($configuration_file, ErrorContext => 3);
23 if ($_[1] eq "value-of") {
24 $$varname .= ${$_[3]};
25 } elsif ($_[1] ne "configuration") {
32 if ($_[1] ne "value-of" && $_[1] ne "configuration") {
33 # Next line for debugging only:
34 # print "OK: #$_[1]# := #$$varname#\n";