if I want to ignore all file (and directories) that start with a dot (like ls without the -a or -A option), or write it asgrep {!/^\./}
which is a lot clearer than /^\.\.?\z/. It's longer, but anyone immediately sees you are excluding two names, and two names only.grep {$_ ne "." && $_ ne ".."}
In reply to Re: Filenames named "..\n"
by Anonymous Monk
in thread Filenames named "..\n"
by zzspectrez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |