There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
ok, how about this.. When you want to create a new object, use 'create'.
When you already have a record in the database you want as an object, use 'retrieve'.
You could say that these two methods replace what you would normally think of as 'new's job, either taking the data from you or from the database to instantiate the object. You can now call methods on your object.
cheers, J In reply to Re: Making a Class::DBI object reference
by edoc
|
|