Class Defines the traits of an object. In Perl a class contains the blueprint for an object's data storage and its related code. Additionally, it defines an object's inheritance, and can have something to do with polymorphism. A new class definition is begun using the "package" keyword. Items defined thereafter pertain to that class until the next package keyword, or the end of the file.