diff --git a/scripts/configure.pl b/scripts/configure.pl index 5f0fb2b1..20021b85 100755 --- a/scripts/configure.pl +++ b/scripts/configure.pl @@ -12,10 +12,10 @@ sub add_config { foreach my $key (keys $c) { my $val = $c->{$key}; - if (ref($val)) { + if (ref($val) eq 'HASH') { add_config($key . '.', $val); } - else { + unless (ref($val)) { $config{'@' . $prefix . $key . '@'} = $val; } }