> Perl is frequently used in CGI environments.  It should be as easy to write
> CGI programs with perl as it is to write commandline text filters.

First off, good idea, I do like this. Critiques:

> Parse the CGI context, returning CGI variables into %CGI

Which variables are you talking about? Everything you need is already in
%ENV, as I'm sure you're aware.

If you're talking about splitting up the query string, then this should
be stated explicitly. And I think %CGI is a fine place for this. Will it
be quotemeta'ed?
 
> Offer simple functions to set HTTP headers (e.g. content type, result codes)

How about %HTTP, which is just flushed on the first line of output?

   use cgi;
   $HTTP{'Content-type'} = 'text/html';
   print "Hello!";     # flushes %HTTP first

Just one idea. Another is to just take the functions out of CGI.pm, but
then perhaps just using CGI_Lite is a better alternative.
 
> All of the other features offered by Lincoln Stein's CGI.pm should remain,
> but should not be deeply integrated into Perl6.

The RFC should just be a little more specific on what's being included
and not included. Are any of the functions like header(), h2(),
footer()? What about %ENV manipulation functions? What do people think?

-Nate

Reply via email to