perl library to add arbitrary extra fields to a class