[Htmltmpl] Anyone using Class::DBI?
Brought to you by:
jakubvrana,
tripiecz
|
From: Wayne W. <ww...@br...> - 2003-09-10 13:50:25
|
I just wrote myself into a corner.
I am writing an application w/ HTML::Template and Class::DBI.
I just got to the first "populate the template" method. I need an array
of hashrefs. I like the clean accessors that Class::DBI gives me,
but really don't want to do something like (incomplete, but you get the
picture):
@Users = Foo::DBI::Users->retrieve_all();
@good_for_template =
map { $_, $Users->$_ }
map {$_->{column_name} } Foo::DBI::Users->columns();
Any then accessing columns in an object pulled in via has_a() further
complicates this.
Recommendations?
--
Wayne Walker
www.broadq.com :) Bringing digital video and audio to the living room
|