http://qs321.pair.com?node_id=1150700


in reply to Re^3: Objects with Private Variables
in thread Objects with Private Variables

Try Lexical::Accessor.