I don't have know any modules including Class::DBI, If I use Class::DBI to generate accessors with name of columns, do I still need the my own accessors above in my package? I think it is needed, but I don't find a demo how to combine the two accessors together.
On 5/17/06, Peter Scott <[EMAIL PROTECTED]> wrote:
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>
-- perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"[EMAIL PROTECTED] ")' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>