$file =~ /^\.\.?$/Or $file =~ /^\.{1,2}$/ (which is easier to extend later if one decides also to treat ... and friends specially! :-) ).
In reply to Re^2: This is why Perl is so frustrating
by JadeNB
in thread This is why Perl is so frustrating
by eggmatters
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |