The stupid question is the question not asked | |
PerlMonks |
Re: store/retrieve data structure in MySQLby friedo (Prior) |
on Jul 31, 2005 at 21:18 UTC ( [id://479743]=note: print w/replies, xml ) | Need Help?? |
You will need to serialize the structure in order to save it into the DB. There are many options available, each with advantages and disadvantages. Data::Dumper is human-readable and serializes your structure as Perl code, YAML is human-readable and cross platform (there are parsers for several languages). There is also Storable, which is a binary format and is somewhat faster. And of course there are various XML things to choose from.
In Section
Seekers of Perl Wisdom
|
|