http://www.perlmonks.org?node_id=472914


in reply to Should I use Fields, InsideOuts, or Properties?

I've my own backwards method around this problem. Basiaclly I have a module to create lvalue accessors for my attributes. So $foo->baris the same as $foo->{bar}. Then if I need to, I have more code to make the scalar a tied value so I get runtime type checking. It's kinda cool but probably also fairly slow. With some work the same method could probably also handle public and private attributes.