Solved

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

Posted on 2007-11-15
1
214 Views
Last Modified: 2013-12-25
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!
0
Comment
Question by:zumpoof
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 total points
Comment Utility
perl -MStorable -le '%x=("a"=>"aa","b"=>"bb");store(\%x,"file");'
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now