#
# Read and parse the configuration files
#
-# Author: Patrick Canterino <patshaping@gmx.net>
-# Last modified: 2004-10-28
+# Author: Patrick Canterino <patrick@patshaping.de>
+# Last modified: 2004-12-31
#
use strict;
my $file = shift;
local *CF;
- open(CF,"<$file") or croak("Open $file: $!");
+ open(CF,"<".$file) or croak("Open $file: $!");
read(CF, my $data, -s $file);
close(CF);
foreach my $line(@lines)
{
next if($line =~ /^\s*#/);
- next if($line !~ /^.+=.+$/);
+ next if($line !~ /^\s*\S+\s*=.+$/);
my ($key,$value) = split(/=/,$line,2);