- 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 (see perlclass). This behaves similarly to package, except that the newly-created package behaves as a class.
BLOCK またはコンパイル単位の残りの部分を、オブジェクトクラスを 実装する指定された名前空間にあるものとして宣言します (perlclass 参照)。 これは、新しく作成されたパッケージがクラスとして振る舞うことを 除いて、package と同様に動作します。