in reply to Handling near-redundant SQL queries
The newest development version also supports many-to-many accessors directly (thanks to contributions from elusion) which your schema will greatly benefit from.
If you need more complex functionality, Class::DBI is the way to go, so check them both out to see which is a better fit for your goals.
Either way, with object-persistence modules like this, you can perform a query and get back a collection of objects. Then you should really be sending the results to an HTML templating system. It should be the current template that decides what fields from the objects should be shown (phone number, etc). The core application logic shouldn't have to be burdened with that. Certainly you wouldn't want a separate function in your code for each possible combination of columns to fetch/show.
blokhead
|
|---|