search.cpan.org is shutting down. It will redirect to metacpan.org after June 25, 2018. With hat: perl
9 lines
354 B
Text
9 lines
354 B
Text
[BCLASS and $CLASS are both synonyms for __PACKAGE__. Easier to type.
|
|
|
|
$CLASS has the additional benefit of working in strings.
|
|
|
|
CLASS is a constant, not a subroutine call. $CLASS is a plain variable, it is
|
|
not tied. There is no performance loss for using CLASS over __PACKAGE__ except
|
|
the loading of the module.
|
|
|
|
WWW: https://metacpan.org/release/CLASS
|