Help for this page
my $dir = "/temp/"; for my $file (glob "$dir/*") { ... close $F; } # closedir(DIR); -- not needed with glob