Re: question about CGI module



Chen Li wrote:
Hi guys;
What are the differences between these two code lines:
use CGI;
and use CGI qw/:standard/;

CGI.pm is a very big module with lots of methods. Normally you don't
really want to import every method into your program. If you use plain
CGI, you get almost no methods (by design). You could specifically
enumerate each method you want to import, such as:

use CGI qw{ start_html header b p h1 end_html };

Or, for convenience, you can use one of the pre-defined function sets
(which begin with a double-point) such as :standard (which will
normally import much more than you really need, so it's convenient but
not efficient). Sometimes you will use a function set but add an
oddball method or two, such as the rather common:

use CGI qw{ :standard Dump };

--
David Filmer (http://DavidFilmer.com)

.



Relevant Pages

  • Http splitting working example
    ... Is http splitting still works in fresh version of common applications ... I've wrote sample application (cgi script) vulnerable to it, ... apache mod_proxy just ignores the answer, ... That breaks the whole idea to exploit http splitting. ...
    (Pen-Test)
  • Re: Unable to view .cgi files
    ... CGI is a rather common type of graphic interface. ... A script is actually ...
    (microsoft.public.windowsxp.photos)
  • Re: Creating a category tree
    ... select boxes to place on the form. ... CGI is less common because it's noticeably more difficult to use. ... jmm dash list sohnen-moe com (Remove .AXSPAMGN for email). ...
    (comp.infosystems.www.authoring.html)
  • cgi, reusing html. common problem?
    ... I'm putting together a small site using Python and cgi. ... JSP/servlets/Java before.) ... I'm guessing that the common way to build sites like this ...
    (comp.lang.python)
  • Re: asp, php or java, .net or what?
    ... >> CGI is outdated, but PHP is still in with a chance. ... The computer language used is more or less any computer language you ... The most common language used is ...
    (alt.html)