# In perl script my @articles = MPDatabase::Article->retrieve_all; $template->param(article_loop => \@articles); return $template->output; # In the template file etc...