Dear fellow monks,

this one is language-independent and therefore quite offtopic, but I hope to get some input though ...

I am starting my first CGI project and want to build an application using LAMP. I've read a lot in books and The Monastery and learned how to get things working. Of course I will use strict, CGI and DBI and I plan to write the whole thing the literate programming style.

What I am wondering about is how to get the different functions, web-forms etc. organized. It's no big application at all, but I'd like it to be well done ... after thinking and sleeping over it, I would start building these files:

Would this be a good start or are these too much files for a relatively small thingy?
Is building a module with standard functions the right way (app_func.pm)??

I appreciate any wisdom, comments, hints - thank you!

weini


In reply to How to organize a CGI project? by weini

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.