libclass-perl

module providing aliases for __PACKAGE__

Description

CLASS is a minimalistic Perl module that simply provides aliases for the special literal, __PACKAGE__, which represents the current package name at that point during program execution. The aliases are mapped at compile-time, so there is no performance hit except for compilation of the module itself.

This module ensures that CLASS and $CLASS can be used anywhere in place of __PACKAGE__, and since $CLASS is a scalar, it has the additional benefit of working in strings.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/CLASS


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libclass-perl