- use closedir to close directory, not just close (which is for filehandle)
This commit is contained in:
parent
b9a20c3995
commit
a0b680e8c7
|
@ -25,7 +25,7 @@ sub available {
|
|||
my $self = shift;
|
||||
opendir D, $self->{dirName};
|
||||
my @conf = readdir(D);
|
||||
close D;
|
||||
closedir D;
|
||||
@conf = sort { $a <=> $b } map { /lmConf-(\d+)/ ? $1 : () } @conf;
|
||||
return @conf;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user