"Freezing" a PERL object and saving it in a database

I'd like to be able to save a PERL object in a mysql database, then retrieve it later on and use it as an actual PERL object.  I looked at "Storable" but couldn't make sense of it. Could someone post some sample code to freeze a PERL object, add it to a mysql table, then retrieve & thaw it?

Thanks!
zumpoofAsked:
Who is Participating?
 
ahoffmannCommented:
perl -MStorable -le '%x=("a"=>"aa","b"=>"bb");store(\%x,"file");'
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.