I don't know about Perl, but in many languages a file is not a scope, so "unknown" is more correct, and in other languages the scope is a module or package name that derives from the filename, eg Java and in others its derived from the path eg Python. So unless someone is going to make the message filetype dependent I agree with @kugel- and @LarsGit223 that this isn't a good idea.