in reply to Perl with Insert query
Apart from the two perfect answers you already got, I wonder why you are using DBD::ODBC instead of DBD::MariaDB or DBD::mysql. Could you give a reason, so I can learn?