Yehezkiel B Syamsuhadi wrote:
> What does this line mean?
> 
> use CGI qw(:cgi-lib :standard);
> 
> I know that "use CGI;" means to use CGI module but what does
> qw(:cgi-lib :standard) that follow "use CGI" mean?

qw() is a way of building a list without having to quote each element and
separate them by commas, so

   qw(:cgi-lib :standard)

is equivalent to the list

   (':cgi-lib', ':standard')

The list is passed to the import() method of the CGI module (this is
something the 'use' keyword does). 

To understand what those do you need to look at the documentation for CGI,
which tells you that those are shortcuts for importing a "basket" of
function names. :standard imports the "standard" set of HTML tags, while
:cgi-lib imports routines for backward compatibility with the old cgi-lib.pl
module.

HTH

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to