foreach my $param ( grep { /^\d+$/ } $cgi->param ) {
my $old = qsearchs('msgcat', { msgnum=>$param } );
next if $old->msg eq $cgi->param($param); #no need to update identical records
foreach my $param ( grep { /^\d+$/ } $cgi->param ) {
my $old = qsearchs('msgcat', { msgnum=>$param } );
next if $old->msg eq $cgi->param($param); #no need to update identical records