Add Moose-style attribute accessors to your Perl classes
Writing accessors in vanilla object oriented Perl doesn’t have to lead to verbose boilerplate code
Writing accessors in vanilla object oriented Perl doesn’t have to lead to verbose boilerplate code
If you need to write object oriented Perl code with no dependencies, then you need to use the old school Perl syntax. This article describes the main features of old school object oriented Perl including class declaration, constructors, destructors, methods, attributes, accessors and inheritance.