http://www.perlmonks.org?node_id=261993

powerhouse has asked for the wisdom of the Perl Monks concerning the following question:

I am creating a site for a client, in which I am making it where all the pages content is stored in a database. Perl then looks up that data. But what If I want it to do some functions, since the page would be stored in a database, how can I get Perl to perform certain tasks?

I guess I'm kinda lost as to how I can make them have a dynamic site, if a certain page requires some Perl syntax in it. I would appreciate it if you could just POINT me in the right direction, of course I'll do all the reading up on it. I don't want you to do any of the work for me. I am just kinda lost, and don't know where to go from here.

Thank you much,
Richard

Replies are listed 'Best First'.
Re: Suggestions on dynamic site..
by tjh (Curate) on May 31, 2003 at 00:40 UTC
Re: Suggestions on dynamic site..
by chromatic (Archbishop) on May 31, 2003 at 00:31 UTC
Re: Suggestions on dynamic site..
by teabag (Pilgrim) on May 31, 2003 at 00:53 UTC
    Well, if you're planning on just using flatfile databases you could check out Yawps, yet another web portal system.

    It's pretty flexible and you could adjust/adapt a lot of the features.

    Teabag
    Sure there's more than one way, but one just needs one anyway - Teabag

Re: Suggestions on dynamic site..
by artist (Parson) on May 31, 2003 at 03:16 UTC
    Your Prototype

    • CGI script: (use CGI)
    • Get title and page-text and other fields from database (use DBI and use DBD)
    • massage title and text according to your needs.
    • prepare new page from the template (HTML::Template).
    • fill the title and text and other fields in the page.
    • print the page.
    You might want to look at princepawn's homenode for your framework for further exploration.

    artist