Re: question about CGI module
- From: usenet@xxxxxxxxxxxxxxx
- Date: 29 Aug 2006 09:59:28 -0700
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)
.
- References:
- question about CGI module
- From: Chen Li
- question about CGI module
- Prev by Date: Re: Time::Local let me faint
- Next by Date: Re: STDOUT and STDERR to same file
- Previous by thread: question about CGI module
- Next by thread: Re: question about CGI module
- Index(es):
Relevant Pages
|
|