Either you somehow try to mimic your array structure in the database (that is not easy, esp. if you use deep structures with references to hashes, etc ...) or you serialize your data.
Storable and its
freeze and
thawe functions come to mind in this respect. The variable with the
frozen image of your array can then be saved in an appropriate database field.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law