# In perl script my $article = MPDatabase::Article->retrieve($articleId); $template->param(article => $article); return $template->output; # In the template file etc... #### # In perl script my @articles = MPDatabase::Article->retrieve_all; $template->param(article_loop => \@articles); return $template->output; # In the template file etc... #### foreach my $article ( @articles ) { print STDERR $article->anyColumnName; }