in reply to more with directory contents
withmy @unsfiles = readdir(DIR);
provided that none of the other files in the directory start with a dot (.) or your scripts name.my $filename = __FILE__; my @unsfiles = grep(!/^(\.|$filename)/, readdir(DIR));
Good luck!my @files = grep(/\./, @unsfiles); my @dirs = grep(!/\./, @unsfiles);
|
|---|