Perl supports some kind of namespace nesting, you can name something
Outer::Inner, but there's no defined logical relation between the outer and the inner namespace.
Instead people usually just document classes as being private, and don't rely on language functionality to enforce it.
Perl 6 - links to (nearly) everything that is Perl 6.