in reply to Making a Class::DBI object reference

Is some_method a class method or instance method? Is it a constructor? Class::DBI objects already have a constructor for making objects. The constructor

BTW, most class methods can be called on objects instead of with the class name if you already have an object to work with. The dispatch works and most class methods don't use the class name. The only place it doesn't work are with constructors where the class name is used with bless. Some constructors will use the "ref($proto) || $proto" idom to get the class name from an object.

Also, Class::DBI uses a lot of class methods to setup the class. Most of them can be used on objects. But an object created before the class is configured will not work right.

  • Comment on Re: Making a Class::DBI object reference