Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I usually create a library class for this kind of work. I used to put the code in the object of the kind of data I was pulling, but I figured a library would be more maintainable. For example:
my @users = Project::getUsers(); So that function returns an array of User objects. If you allow your constructor of your User object to take array references as an arg, you can populate the object on the fly with the result row, and then return the list of objects.
-- In reply to Re: OO Application Design
by samurai
|
|