in reply to Remove '.' and '..' from a list of filenames

What's wrong with this? :
@filtered_directory = grep { $_ ne '.' && $_ ne '..' } @directory
I know TMTOWTDI, but I would have thought that not using a regular expression was probably more efficient ;-)