You can save the "id" in the database, but the "array" which is the "value" part of the hash cannot be saved as such. Of course this "array" is really an array-ref and you will have to dereference it to get the data itself. But that means you will have a multiple of data-items which of course will never fit in one field in your database.
You will have to review and revise your database schema to make this work.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial DeltronicsIn reply to Re: Inserting Hash Information Into MySQL
by CountZero
in thread Inserting Hash Information Into MySQL
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |