Is there a way I can refrain from printing the file name for files with the l permission activated? Most of the files in the directory have -rwxrwxrwx permissions, but a few have lrwxrwxrwx, and I wish to exclude those. How do I do this?opendir(DIR, "$directoryName"); @files = readdir(DIR); closedir(DIR); foreach $file (@files) { print "$file\n\n"; }
In reply to Using Permissions as a Parameter by Dr.Avocado
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |