Change the global, like this:
my $in = $IN->get_hash;
for (keys %$in) {
$in->{$_} = join ', ', @{$in->{$_}} if ref $in->{$_} eq 'ARRAY';
}
$in
}
Alternatively, if you _know_ that it will always be multiple form values, you can do:
<%loop forums_choice%><%loop_value%><%endloop%>
The only problem is that it will break if only one forums_choice= is passed in.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Code:
sub { my $in = $IN->get_hash;
for (keys %$in) {
$in->{$_} = join ', ', @{$in->{$_}} if ref $in->{$_} eq 'ARRAY';
}
$in
}
Alternatively, if you _know_ that it will always be multiple form values, you can do:
<%loop forums_choice%><%loop_value%><%endloop%>
The only problem is that it will break if only one forums_choice= is passed in.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com