PopcornDave,

In regards to what chromatic said, you should look into pointing users that go to "www.myhost.com" to index.shtml. By having an index written with SSI and Perl, i think you'll be able to reap the most benefits.

I'm not against writing a whole website in Perl, however,

if you have a lot of static content, my suggestion is to put that into SSI+HTML pages, and put your perl scripts in your <!--#include virtual=""--> or your <!--#exec cgi=""--> includes.

For example, I have a simple CGI program on my webserver that puts a random quote on my homepage.

It's called by <!--#include virtual="johnisms.pl"-->.

By having the static information stored in an HTML page, it puts (marginally) less strain on Perl, and allows you to design the page in any HTML editor. (Dreamweaver works well with SSI).

Hope this helps!

John J Reiser
newrisedesigns.com


In reply to Re: Update: Automatic execution of a CGI program on a web page besides a counter by newrisedesigns
in thread Automatic execution of a CGI program on a web page besides a counter by Popcorn Dave

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.