
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.