http://www.perlmonks.org?node_id=1207846


in reply to Perl DBI not storing @prev_value in query

Have you read the documentation for DBD::mysql? It does not mention MySQL user-defined variables so I doubt that it supports them.