CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
Using not advanced?



Sep 4, 2001, 6:52 AM

Post #1 of 4 (3265 views)
Using not advanced? Can't Post

Sorry, I just read something strange ( 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 is not advanced!!
I'm still using 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.;-)


Sep 4, 2001, 8:51 AM

Post #2 of 4 (3264 views)
Re: Using not advanced? [In reply to] Can't Post

Who on this forum says that using CGI isn't advanced? If you have a look at these threads, for example, you'll see that is generally recommended:

The description of the Advanced forum (I guess that's what you refer to...) only says that if you've been using a few times, you're not neccessarily a person to post to the Advanced forum.
Using CGI is always a good idea and helps you becoming an advanced Perl programmer. (Because you can spend your time exploring the interesting features of Perl instead of debugging your CGI parsers...) The biggest problem with is to get people to actually using it.

-- Marcus



Sep 6, 2001, 1:57 AM

Post #3 of 4 (3256 views)
Re: Using not advanced? [In reply to] Can't Post

Just take a look at the description for the advanced category/forum. It says: Hint: using is not advanced!


Sep 6, 2001, 3:13 AM

Post #4 of 4 (3255 views)
Re: Using not advanced? [In reply to] Can't Post

I hate to repeat myself...
Yes, it says

Hint: Using for one or two functions is not advanced.

I've already explained in my last post that the meaning of this is not that using CGI is not advanced, but the fact that you have used CGI once or twice doesn't neccessarily make you an advanced Perl programmer.
Hope this makes it clearer now... Wink

-- Marcus



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives