This question is really pretty vague and general, I realize. I may be updating it more as I investigate further and add more details.

I am in the process of converting numerous CGI programs written in perl to utilize the CGI.PM module. I've done one, and it went well. I'm about to work on a second. All I've done is added two statements to the top:

use CGI; $CGI = new CGI;

No additional code was added or changed, meaning its still PRINTing HTML statements throughout.

But just from this, we've seen some differences depending on whether it was a POST or GET that called this cgi. Now, in the CGI.PM documentation (in the CGI.PM module itself in perldoc fashion) I've not seen anything that speaks to difference between GET and POST making me believe that somehow, the CGI.PM module is taking care of the differences itself. How does CGI.PM process the form variables before anything else is done? It must be doing something, to explain why we see differences just from adding the use CGI; statements. Can somebody give me a clue?


In reply to Does CGI.PM process input data by kmullin5016

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.