kmullin5016 has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Does CGI.PM process input data
by Joost (Canon) on Feb 21, 2007 at 20:11 UTC | |
|
Re: Does CGI.PM process input data
by GrandFather (Saint) on Feb 21, 2007 at 20:14 UTC | |
|
Re: Does CGI.PM process input data
by zentara (Cardinal) on Feb 21, 2007 at 20:56 UTC |