1. if a perl module has to come with data to be useful, how much data should be part of the module? If the module can come with MB of data, should it?

    The simplest answer to that is: just enough to make it useful and no more.

    If there is a larger corpus of data that may be required by some users, consider packaging the larger subset as a separate package. eg. Xxx::Yyy comes with the minimally useful dataset. Installing Xxx::Yyy::Pqr installs the bigger dataset for those that need it.

    It's easy to see that can be extended to multiple 'expansion' sets.

  2. In terms of developing the data, I think a persistent perl structure is required. How does/should one decide between the two (DBM::Deep .v. DBM::Deep::Blue) above?

    To my knowledge, DBM::Deep is Pure Perl. And runs pretty much anywhere perl does.

    DBM::Deep::Blue is written in C, therefore install requires a compiler, potentially limiting your user-base. Which may or may not be a bad thing. It also requires 5.12.1 which further limits your target audience.

  3. Most of what I am going is HoH, some is LoH. Are there any lessons on how to turn Lo* or Ho* into SQL?

    Do you just want to be able to query an individual sub* by it primary key? Or do you need to subselect to a finer granularity?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

In reply to Re: Perl and data/databases by BrowserUk
in thread Perl and data/databases by Anonymous Monk

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.