From 97a2a1aacff3acaa9a67555eb487877b1599714b Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Wed, 25 Jul 2007 16:12:55 +0000 Subject: * reduced use of Config::General to object-oriented mode only, as it is cleaner and avoids the risks of automatic imports being changed between versions (a problem Reiner has mentioned) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1273 95ad53e4-c205-0410-b2fa-d234c58c8868 --- lib/OpenSLX/Basics.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/OpenSLX/Basics.pm') diff --git a/lib/OpenSLX/Basics.pm b/lib/OpenSLX/Basics.pm index 6c4fa87e..45a37986 100644 --- a/lib/OpenSLX/Basics.pm +++ b/lib/OpenSLX/Basics.pm @@ -168,12 +168,13 @@ sub openslxInit if ($verboseLevel >= 2) { vlog(0, "reading config-file $f..."); } - my %config = ParseConfig( + my $configObject = Config::General->new( -AutoTrue => 1, -ConfigFile => $f, -LowerCaseNames => 1, -SplitPolicy => 'equalsign', ); + my %config = $configObject->getall(); foreach my $key (keys %config) { # N.B.: these config files are used by shell-scripts, too, so in # order to comply with shell-style, the config files use shell -- cgit v1.2.3-55-g7522