Well, Brother Dep, you are probably between a rock and a hard place. I am going through a very similar process where I am, redesigning an organisation's internet and intranet web sites. Each has 200 plus pages, generally "static" - with the exception that maintenance has become a nightmare.

I will be using EmbPerl::Object. This allows several things - a site to be built from reusable components (standard headers and footers, navigation bars and all that), and the seperation of perl code from html code. The HTML stuff still looks like HTML stuff, and the web writing people are stull happy. The perl code uses EmbPerl - which makes use of CGI.pm under its own covers.

Now, that does not solve your immediate problems, which as I see it is summed up by:

to quote the senior developer, "I forget how it works, but as long as it works, thats the way it is."
It doesn't matter what the develoment environment is - everythime I hear that, I have visions of huge impending disasters. Think Pompei with smoke at the top of Mount Vesuvius. Think S.S. Titanic and "hey, there are a few icebergs around tonight". Think General Custer and "I can't see any indians here".

You may be able to propose a transition from the current methods, to some form of templating - it really doesn't matter which one, they all are much better than your current situation. Then, when a particular page / module needs to be modified, convert it to the new architecture.

Good luck - I think you are going to need it.

Update: Thanks, deprecated, for reminding me how to spell Pompei.


In reply to Re: Why use HTML instead of CGI? (codediscussion) by Maclir
in thread Why use HTML instead of CGI? (code, discussion) by deprecated

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.