Hi monks,
I've been pondering, my recent post HTML::Template problems has had me wondering if the method I am using is the best?
Now pardon me if i am being repetitive, but my goal is to have the DB.pm file be able to act as my interface to the database (of course), and the Page.pm file be able to create the page, and return it in proper format and what not. I want to make sure that the data is:
  1. Formatted correctly
  2. Can be formatted from anywhere (that is to say, called from any script that I use)
  3. scalable

Of course, all perl hackers want to achieve such things, but my main goal is to make sure, once again, that I can use these modules anywhere, with (pretty much) anything as far as perl goes, and get the same output.
This is *supposed* to be an extremely simple task, and I'm sure in the end it will be, but right now I need some help organizing what would be best in this situation.

NOTE: I'd use Class::DBI, but Structure.pm is giving me hell.
Any help is very appreciated, I'm open to any and ALL comments.

(Terribly sorry if this is cut short or vague, I'm tired and I just had this bugging me for a while. I'll update as needed.)
dhoss

"and I wonder, when I sing along with you if everything could ever feel this real forever? if anything could ever be this good again? the only thing I'll ever ask of you, you've gotta promise not to stop when I say 'when'", she sang

In reply to Best method for dynamic page generation? by stonecolddevin

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.