"John W. Krahn" schreef: > Dr.Ruud: >> The '.' and '..' are directories, not plain files. > > Some file systems do not have the directories '.' and '..' so they > *could* just be plain files.
Right, and that is one of the reasons why I keep bringing -f() up. I am also testing with a file called "|ls -a" around, to see how that would create havoc. (none sofar) >> 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. Heheh, I think I was the (last) one that asked for that unification, and I am still very happy that it got changed: I like to minimise the usage of the escaping backslash. That 'better' is on some scale, I think the readability of [.] is better. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>