Ok,

I have been working on a short term web project that is by no means finished yet, but is being developed slowly at a time. I have a question that I can't seem to figure out, I have no clue where to search in the pod's or perl docs at for this type of situation, and have been working (*worrying*) for about a week now trying to figure out how to program this part of the project.

Here is the main question: I have a CGI site made with Perl, and what it does is display various items like news, announcements, links to other sites, a user post board, etc. (similar to news sites such as slashdot, etc.)

This question has two main parts that need to fit together:
  1. I would like to be able for a person setting up this site to be able to add extra pages to the site, since people usually want to see more sections, such as (contact us, etc.) How would I do this?
  2. Next, I would like the main part of the program (that runs the rest of the files needed for the site,) to be able to search a folder where those new pages would be, and know what there is to pick from for if a user wanted to visit a new page. How would I do this?


I have no clue what to do for this type of situation, since I haven't programmed many CGI's. Does anyone know of any good methods I could try for these abstract questions? Or what man page would help, if there is one that is specific to this type of problem.

Andy Summers

In reply to Creating new HTML files and accessing them later. by bladx

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.