You may find the answer in Class::MakeMethods.
In reply to Re: declaring accessor methods from a list by GrandFather in thread declaring accessor methods from a list by Bro. Doug