You are viewing the version of this documentation from Perl 5.38.2. View the latest version
class NAMESPACE
class NAMESPACE VERSION
class NAMESPACE BLOCK
class NAMESPACE VERSION BLOCK

Declares the BLOCK or the rest of the compilation unit as being in the given namespace, which implements an object class. This behaves similarly to package, except that the newly-created package behaves as a class.