in reply to Filenames named "..\n"
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 ".."}
|
|---|