Is it possible to do that without specifying all the keys by name? Or at
least is there a way to get all the keys from $obj, then loop and create a
hash, something like:
my $hash;
foreach(@keys) {
$hash->{$_} = $obj->$_;
}
You're asking for trouble with something like that. Create a DB column
called "template" and BOOM!
You're almost certainly better off doing this on the template side of
things:
[% FOREACH obj %]
Name: [% name %]
[% END %]
Will do the same as:
Name: [% obj.name %]
as long as there is only one obj.
Carl
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/