Help for this page
unless (opendir(DIR,$scandir)) { confess "can't open the directory $scandir: $@"; } @files=grep {-f "$scandir/$_"} readdir(DIR);
chdir ($scandir); opendir(DIR,'.'); @files=grep {-f $_} readdir(DIR);