diff --git a/Build.pm b/Build.pm index 9a3e23b4e..9da285627 100644 --- a/Build.pm +++ b/Build.pm @@ -447,7 +447,9 @@ sub read_config { for my $l (@spec) { $l = $l->[1] if ref $l; next unless defined $l; - my @l = split(' ', $l); + # Support escaped spaces in the values + # zero-width negative look-behind assertion searching for spaces not preceded with a backslash + my @l = split(/(?{$t} = []; } elsif ($l =~ /^!/) {