Before I came to Perl Monks, and before I knew about CGI.pm, I would go to various different places to find CGI scripts for my website. I thought that CGI Resource was a good place to get pre-made scripts. Now I know better. I got curious, I started downloading some of the scripts and read through them. Not very many use CGI.pm. I find that odd, considering the complexity of some of the scripts, the authors seem to know alot about perl, yet they don't know the benifits of CGI.pm (I'm still learning, but at least I know to use it (thanks ovid)) I found a site that shows how to make a simple cgi form. I used that form in a script, had some problems and got flamed pretty hard about that. I found other scripts on that site that the author is allowing for others to download and and use, but knowing what I know now, I will not use them. In fact, when I get around to updating my site, I will remove these links because I don't want someone else making the same mistakes I have made...My backside is still a little tender from the beating I got by not using CGI.pm on this site :~) Thanks to merlyn I now know that there is no excuse for not using it, and after I took the time to read the many pages of documentation associated with it, it is actually easier to use. What I can't understand is how do these people slip through the cracks. I mean, these seem like some pretty good perl coders, but they never heard about (or think they can do better then) CGI.pm. Is there a monk here that has been around a while that would thing of not usning CGI.pm? I think not! Would I ever post saying that I'm not using CGI.pm? Not on your life!
I realize that there are probably alot of wannabe hackers like myself that go out and find tutorials written by someone like this that will fall into the same trap that I fell into, or alot of amature web designers like myself that find the 2200 + perl scripts on the cgi resource site to be exactly what they are looking for, but are leaving themselves wide open for problems. It makes me wish that there was a way to protect the unknowing (such as myself) from such a fate. Maybe we can start a mass e-mail campaign sending out links to ovid's tutorial on CGI.pm, especially the page about why we should use it. Then if we find that anyone that we sent an e-mail to is still not using it, we go to there home and torture their family, dog, roomate, whatever they have. Ok, so that won't work, but it is an idea. ;~)

Update:

fixed link to ovid's tut.

Stuffy

That's my story, and I'm sticking to it, unless I'm wrong in which case I will probably change it:~)

In reply to A newbie's thoughts on CGI, and Learning a Lesson by stuffy

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.