summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>1999-11-09 14:42:05 +0000
committerFrancois Pons <fpons@mandriva.com>1999-11-09 14:42:05 +0000
commitc3b5ff8158ed25327e34de957573b8c17b80b0eb (patch)
tree6fb3b61db8333f7a621bb38d4bd3daf02accc88f /perl-install/common.pm
parent5442399c701c34ef4803f46ab756c89a0e1618e5 (diff)
downloaddrakx-c3b5ff8158ed25327e34de957573b8c17b80b0eb.tar
drakx-c3b5ff8158ed25327e34de957573b8c17b80b0eb.tar.gz
drakx-c3b5ff8158ed25327e34de957573b8c17b80b0eb.tar.bz2
drakx-c3b5ff8158ed25327e34de957573b8c17b80b0eb.tar.xz
drakx-c3b5ff8158ed25327e34de957573b8c17b80b0eb.zip
*** empty log message ***
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 31caedba1..4a15ebef9 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -205,7 +205,10 @@ sub all {
local *F;
opendir F, $d or die "all: can't open dir $d: $!\n";
- grep { $_ ne '.' && $_ ne '..' } readdir F;
+ my @l = grep { $_ ne '.' && $_ ne '..' } readdir F;
+ closedir F;
+
+ @l;
}
sub glob_ {