in reply to Re: This is why Perl is so frustrating
in thread This is why Perl is so frustrating

$file =~ /^\.\.?$/
Or $file =~ /^\.{1,2}$/ (which is easier to extend later if one decides also to treat ... and friends specially! :-) ).