8 @LiCoM::Config::EXPORT_OK = ('get_config');
9 @LiCoM::Config::ISA = ('Exporter');
15 my @files = ('/etc/licom/licom.conf');
21 elsif (defined ($ENV{'HOME'}) and (-d $ENV{'HOME'}))
23 push (@files, $ENV{'HOME'} . '/.licomrc');
29 next unless (-r $file);
31 read_file ($file, $config);
39 my $file = @_ ? shift : '/etc/licom/licom.conf';
40 my $config = @_ ? shift : {};
43 open ($fh, "< $file") or die ("open ($file): $!");
49 if ($line =~ m/^(\w+):\s*"(.+)"\s*$/)
54 $config->{$key} = $val;