From: Peter Powell Date: Mon, 4 Apr 2016 12:49:56 +0000 (+0100) Subject: Fix "use of uninitialized value $key in hash element" error. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=c0ec56e9c7295d3cf9ca4d4f103ebf083eb1922a;p=user%2Fhenk%2Fcode%2Finspircd.git Fix "use of uninitialized value $key in hash element" error. --- diff --git a/make/configure.pm b/make/configure.pm index ee96e3c69..8619d5be2 100644 --- a/make/configure.pm +++ b/make/configure.pm @@ -220,7 +220,7 @@ sub read_configure_cache { open(CACHE, CONFIGURE_CACHE_FILE) or return %config; while (my $line = ) { next if $line =~ /^\s*($|\#)/; - my ($key, $value) = ($line =~ /^(\S+)(?:\s(.+))?$/); + my ($key, $value) = ($line =~ /^(\S+)(?:\s(.*))?$/); $config{$key} = $value; } close(CACHE);