in reply to Re: elseif syntax error
in thread elseif syntax error

I think perhaps you meant

if (!/^\.{1,2}$/) {
or
if (!/^\.\.?$/) {
unless you're trying to avoid all entries that consist only of dots. ("...." is a valid name)

Replies are listed 'Best First'.
Re^3: elseif syntax error
by keszler (Priest) on Oct 27, 2009 at 14:55 UTC
    Confused.

    Inspiration:

    $ echo 'wtf' > ... $ ls -l ... -rw-r--r-- 1 me me 4 Oct 27 10:50 ... $ cat ... wtf $

    Enlightened.

      ls # Scared due to the lack of mention of "..." in ls output (at least I +hope # you are, as otherwise "enlightment fizzled and finally failed").