I don't know if it'll solve all your problems, but this is definitely wrong:
> my @articles = $c->request->params->{article_id};
> ...
> foreach my $article ( @articles ) {
You're assigning an arrayref to the first item in @articles.
Do this instead:
my $articles = $c->request->params->{article_id};
# if there was only 1 article_id submitted, it won't be an arrayref
# make sure it's an arrayref, so the loop below doesn't break
$articles = [$articles] if ref $articles ne 'ARRAY';
# dereference the arrayref
for my $id (@$articles) { ... }
Carl
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/