in reply to Using Permissions as a Parameter

You're looking for the -l $file test, which tests for a symbolic link. See -X, as in:

foreach $file (@files) { next if -l "$directoryName/$file"; print "$file\n\n"; }
Clint

Update: Added the directory name as per jwkhran's post below