X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/45dab0a69a6d22dd13aa625970c4b673afea535c..8e187e4f2ec51c2306c5d69755db1cc04e5e2cee:/modules/Config/DevEdit.pm diff --git a/modules/Config/DevEdit.pm b/modules/Config/DevEdit.pm index 24b3fe1..9b3cc6c 100644 --- a/modules/Config/DevEdit.pm +++ b/modules/Config/DevEdit.pm @@ -5,8 +5,8 @@ package Config::DevEdit; # # Read and parse the configuration files # -# Author: Patrick Canterino -# Last modified: 2004-10-28 +# Author: Patrick Canterino +# Last modified: 2004-12-31 # use strict; @@ -24,7 +24,7 @@ use base qw(Exporter); # # Read the configuration files of Dev-Editor # -# Params: Path to configuration file +# Params: Path to main configuration file # # Return: Configuration (Hash Reference) @@ -53,7 +53,7 @@ sub parse_config($) 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); @@ -63,7 +63,7 @@ sub parse_config($) foreach my $line(@lines) { next if($line =~ /^\s*#/); - next if($line !~ /^.+=.+$/); + next if($line !~ /^\s*\S+\s*=.+$/); my ($key,$value) = split(/=/,$line,2);