The frist thing I would look into is using a database backend instead of your CSV file. From what you describe, a simple flat file will quickly become a liability when it comes to searching and updating the data. Don't know if you are familiar with SQL already - if not, I'd check out open source solutions such as MySQL or PostgreSQL. These are all well supported in Perl, using (by now rather old-fashioned) Perl DBI or the more moden DBIx::Class (or others).
The old-fashioned way of making a dynamic web site was Perl CGI but I would not recommend doing this anymore. Use one of the modern web frame works. Personally, I am using Catalyst and I have used CGI::Application in the past. Both are good. Catalyst comes with a steeper learning curve, so CGI::Application might be the faster way to get you off the ground.
The thing about modern frameworks, is that they follow a so-called "Model-View-Controller" design and it is worth learning a bit about the concept first. In brief: the model contains all the "business logic" of the web app - in your case that would be what you have in your existing scripts. The Controller is the bit of the app that takes user input, then asks the model to do something with it and finally asks the View to render something - usually a html web page.
Using such a framework means that your existing back-end (the scripts you have written) basically stay as they are and you just write some additional code to interact with it and present the results.
The only thing you might have to do to your existng code - if you haven't already done this - is to make them proper modules that can then be "use"'ed in your web app with a clear interface to keep the Model code nicely separated from the rest of the web app.

In reply to Re: Building a webpage with Perl by tospo
in thread Building a webpage with Perl by relientmark

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.