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.
--
perl: code of the samurai
In reply to Re: OO Application Design
by samurai
in thread OO Application Design
by Nomis52
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |