in reply to Re: Hand-rolled CGI mailto
in thread Hand-rolled CGI mailto

Obviously I'm extremely new to Perl & CGI. Your PATIENCE and WILLINGNESS to help me learn here will never be forgotten. (O.K...'nuf groveling) I'm really trying to understand something. My basic "Contact Us" form is an .html document; so I need one .PL file to give it "action"; AND one cgi.pm file to "collect" the data from the form???(I'm 30 years old and just starting with Perl/CGI so I really appreciate the time you're taking here)

Replies are listed 'Best First'.
Re: Re: Re: Hand-rolled CGI mailto
by Gerard (Pilgrim) on Dec 17, 2003 at 04:19 UTC
    No problem, cgi.pm - the pm part stands for perl module, and in this case it is a standard module. This means that it should be installed already on the machine that has perl on it.
    In some cases references will be made to non-standard modules, but this particular case you don't need to worry too much. Just put use cgi; at the top of your code and the perl interpreter will know where to look for it.

    If you are interested, there are plenty of nodes on installing modules etc, right here at the monastery.

    Hope this helps, Gerard.
    Update: in short, yes you do need both files, but you should already have cgi.pm there.
      Greatly appreciated! That answers a lot of questions. I've spent hours upon hours diving head first into Perl with online tutorials, books, etc, so needless to say, my head is spinning! Sometimes you just need a forum to straighten out a few questions that arise.

      By the way, I got that form to "POST" the visitors info. in my email. I also copied the OVID CGI lesson you all recommended and already see how it will clarify many more questions. THANKS AGAIN FOR EVERYTHING!!!! (sorry 'bout the caps)