Yes.
Most likely you want to look at something like SQL::Abstract, unless you want to show us more code.
In reply to Re: Store hash in mysql by Corion in thread Store hash in mysql by Anonymous Monk