Dr.Ruud wrote: > > The '.' and '..' are directories, not plain files.
Some file systems do not have the directories '.' and '..' so they *could* just be plain files. > You can write > > !/^\.$|^\.\.$/ > > as > > !/^\.\.?$/ > > so also as > > !/^[.][.]?$/ Until Perl 5.8.10 comes along literals are more efficient than character classes so the first one would be better. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>