in reply to Re: Regex negative lookahead
in thread Regex negative lookahead

Thank you for your answer, I think I understand now. But about these "." and "..", are they files? Is "." the same "." as the current directory?

Replies are listed 'Best First'.
Re^3: Regex negative lookahead
by NetWallah (Canon) on Apr 25, 2014 at 04:39 UTC
    Yes : "." is the current directory, and ".." is one level above.

    These are not files.

    It is traditional for them to be viewed in a directory listing.

            What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
                  -Larry Wall, 1992

      On a Unix-y or POSIX-y system, directories are a special case of files, as are named pipes, device files, and a few other things. They are not regular files. Directories can be treated as files in some cases, but it is generally undesirable to do so. It's best to test.