in reply to Re^2: Object accessors with unknown data
in thread Object accessors with unknown data

One of the dangers with dynamic fields is the potential for collision (what if a column is titled "new"?). However, if you wish to try it out anyway, I would use AUTOLOAD. The example in the documentation does exactly what you want (though note the comment that says "this is a terrible way to implement accessors").

Good Day,
    Dean

  • Comment on Re^3: Object accessors with unknown data