if ($input[0] ne $inputUpdate[0]) { my $dbquery eq "UPDATE table_name SET column_name=$inputUpdate[0] WHERE column_name=$input[1]"; }