[ABE.pm] Got any good data structures handy?

Ricardo SIGNES rjbs-perl-abe at lists.manxome.org
Fri Dec 10 22:17:02 CST 2004


* Faber Fedor <faber at linuxnj.com> [2004-12-10T21:47:28]
> Then I got to thinking about the data structure that needs to hold the
> title of each graph, the X and Y axes labels of each graph, the style
> for each graph, etc.  I'm thinking of a hashref.  You?

That certainly sounds reasonable.  Hashes are really, really useful for
serving as generic catch-all "record" types.

> Then there's the matter of storing the data structure to disk.  Should I
> put it into a MySQL DB?  An XML file? 

MySQL has administrative overhead.  XML is a pain, in my experience.  I
suggest SQLite (q.v. DBD::SQLite) or YAML (q.v. YAML.pm) or maybe
Storable.

-- 
rjbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/archives/abe-pm/attachments/20041210/b07e12b7/attachment.bin


More information about the ABE-pm mailing list