diff options
-rw-r--r-- | perl-install/Xconfig/xfree.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/Xconfig/xfree.pm b/perl-install/Xconfig/xfree.pm index 7b6ba3e37..43c4fe885 100644 --- a/perl-install/Xconfig/xfree.pm +++ b/perl-install/Xconfig/xfree.pm @@ -43,7 +43,7 @@ sub get_both { my @l3 = $both->{xfree3}->$getter; my @l4 = $both->{xfree4}->$getter; - mapn { + my @r = mapn { my ($h3, $h4) = @_; my %h = %$h4; foreach (keys %$h3) { @@ -63,6 +63,8 @@ sub get_both { } \%h; } \@l3, \@l4; + + @r == 1 ? $r[0] : @r; } sub set_both { my ($setter, $both, @l) = @_; |