Class::MethodMaker is a module that can be used to synthise simple accessor methods in your modules. This is helpful because it means you can avoid the drudgery of writing basic code, you can produce working code quicker, and most importantly, the more code you write, the less chance you have to introduce bugs.
Foo.