I know TMTOWTDI, but I would have thought that not using a regular expression was probably more efficient ;-)@filtered_directory = grep { $_ ne '.' && $_ ne '..' } @directory
In reply to RE: Remove '.' and '..' from a list of filenames
by kilinrax
in thread Remove '.' and '..' from a list of filenames
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |