On Wed, 17 May 2006 08:23:11 +0800, Ken Perl wrote: > suppose I have a table person with following columns, name, age, > salary. If use OOP [snip] > My question is, should I query/update the table at the same time in > above accessor method?
Some people do. Some defer it in various ways. Depends on your application. You are aware that there are several modules already addressing this problem? Try Class::DBI. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>