Sep 4, 2001, 6:52 AM
Post #1 of 4
Sorry, I just read something strange (CGI.pm not advanced)
Using CGI.pm not advanced?
Off course, you inport a lot of other stuff,
but why dont import
use CGI qw(header, redirect param escape);
use CGI qw(:cgi escape);
You then have all the CGi needs for your perl program.
Besides, I've seen much CGI programs that print "Content-type: text/html\n\n";
but that could cause quite some troubles! Didn't anyone ever hear of the Internet-End-Of-Line standard code? (see perldoc perlport)
I've even seen CGI programs what fail with POST request, because they only expect GET request (or forget a combination of them!), and visa versa.
Some CGI programs that use redirection fail in some cases (and you'll see a blank screen, but that isn't caused by a thrown error).
Those CGI programs just print out bad HTTP redirect headers!!
So Please don't SAY using CGI.pm is not advanced!!
I'm still using CGI.pm and that leaves me with less trouble, so I can focus myself on disigning the CGI program, not the HTTP handling part (or debugging that part of my program).
Most CGI programs that do it their way sux, or fail/die.
Comments to this article are always welcome.;-)