Help for this page

Select Code to Download


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