Are you asking how to use a CGI script that's written in Perl, or are you asking how to write a CGI script in Perl?

If you're asking how to use a CGI script that's written in Perl, you should contact the script's author or its support group. If you're asking how to write a CGI script in Perl, you have to learn to program, and how to do so in Perl, and how to apply that to programming for the Common Gateway Interface (CGI). This isn't one of those things you can do well by asking one or two vague questions. Honestly the best answer I can give to your question, instead, is a good list of things to do in order to get started, if you're interested in really committing the time it takes to learn:

  1. Buy or borrow a copy of Learning Perl, published by O'Reilly & Associates and read it. As you read it, follow its guidance on installing Perl and work your way through its examples.
  2. As you come up with specific questions while reading that book, be sure to ask them here; we love to help when people ask the kinds of questions that can actually be answered.
  3. Find a webhost that allows you to write and work with CGI scripts on its server, and that allows you to do so using Perl.
  4. Obtain CGI Programming with Perl, 2nd Edition, also published by O'Reilly & Associates, also working through its examples as you read it cover to cover. Be sure to pay extra attention while reading the sections dealing with web security.

Please let us know when you need help at any step along the way, and enjoy the world of possibilities newfound knowledge opens before you.


Dave


In reply to Re: storing or retrieveing by davido
in thread storing or retrieveing by nyananyom

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.