Perrin,

I look forward to seeing your paper!

In particular I find I am doing the same things over and over again. I keep thinking, wouldn't it be cool if I could easily relate this 'hash' or this 'array of hashes' to a DB table.

Just recently I have seen some quite specific modules, such as hash2table and table2hash, they look fine, as far as they go, but I think I am looking for some greater level of abstraction. For example the ability to easily manage complex data-structures, for storing the state of a complex state machine, or for storing configuration hashes or arrays which might be quite variable in nature. In one application I have mappings of fields in an import file realting them to a database table. It is two arrays, now, how about an easy interface to save an array of arrays in a named structure and save them in the db. Of course, the arrays are both the same size, but they could be as small as 2 values each or as many as 40 to 50. I just want them back the same way I had them before.

I know I can do some of this using a CONFIG module, but I am hoping that I don't have to write some sort of kludge around a CONFIG module when a DBI wrapper of some sort might be easier to handle and more usable for me.

Make sense?

jdtoronto


In reply to Re: Re: DBI and wrappers etc confusion. by jdtoronto
in thread DBI and wrappers etc confusion. by jdtoronto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.