Perl’s system for object-orientation is powerful, turning over control of nearly everything to the programmer. It abides by Perl’s motto, “There’s more than one way to do it!” The Moose philosophy agrees, but pencils in its own ammendment, “There is more than one way to do it, but sometimes consistency is not a bad thing either.” By establishing a common system for building classes, Moose enables new levels of code reuse, allowing you to improve your code with features that would otherwise be too complex or expensive to implement on your own.
Although its compact, declarative look can seem perplexing at first glance, Moose is just Perl, and can be easily explained, learned, understood, and put to use. This tutorial will cover all of Moose’s basic features, including attributes, subclassing, method modifiers, roles, and types.
Ricardo Signes was thrust into the job market with only a rudimentary humanities education, and was forced to learn to fend for himself. He is now a full-time Perl programmer, maintainer of the Perl Email Project, and frequent contributor to the CPAN.
Comments on this page are now closed.
For information on exhibition and sponsorship opportunities at the conference, contact Sharon Cordesse at email@example.com
Download the OSCON Sponsor/Exhibitor Prospectus
For media-related inquiries, contact Maureen Jennings at firstname.lastname@example.org
To stay abreast of conference news and to receive email notification when registration opens, please sign up for the OSCON Newsletter (login required)
Have an idea for OSCON to share? email@example.com
View a complete list of OSCON contacts