NAME
CLASS - Alias for __PACKAGE__
SYNOPSIS
package Foo;
use CLASS;
sub bar { 23 }
# Prints '23'
print CLASS->bar;
DESCRIPTION
CLASS is a synonym for __PACKAGE__. Its easier to type.
It only has to be used once, then its available for the rest of your program.
But what if I want a different name?
Subclass it!
package Joe;
use CLASS;
@ISA = qw(CLASS);
Now Joe-
foo> is a synonym for __PACKAGE__-
foo>
AUTHOR
Michael G Schwern <schwern@pobox.com>