Re: use of CSS in CGI generated docs, Impossible ?



A. Sinan Unur wrote:
navid.boarder@xxxxxxxxx wrote:

use CGI;

If you are going to use the object oriented interface, you should probably write:


use CGI();

so you don't import a whole bunch of names into your script's namespace.

If that had been the case, wouldn't the CGI POD have mentioned it?

    use CGI();
    BEGIN { $::symbols = keys %CGI:: }

    use CGI;

    print "With parens: $::symbols\n",
          'Without parens: ', scalar keys %CGI::, "\n";

Outputs:
With parens: 86
Without parens: 87

Not much to make a fuss about, is it? ;-)

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.



Relevant Pages

  • Re: empty classes as c structs?
    ... So, on balance, if copy semantics are important to bunch uses, and references ... for namespace I ... making the interface as convenient as possible, ...
    (comp.lang.python)
  • Re: empty classes as c structs?
    ... > I see this, but I think it weakens the case for a single implementation, ... Do you mean there should be a separate Namespace and Bunch class? ... > was matching the argspec of dict. ...
    (comp.lang.python)
  • Re: Referencing another source file
    ... I have two .cs files compiling into one assembly. ... into the same namespace. ... File A contains a class with a bunch of static methods that I want to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: empty classes as c structs?
    ... Alex Martelli wrote: ... > wrapping a dict in a bunch gives you for further getting and setting ... in this context) of calling this 'namespace' in part because it can lead to ... The class interface implements the protocol and little else. ...
    (comp.lang.python)
  • Re: Hypothetical: All code in classes but main()
    ... But then we have people running around thinking of namespace ... approach prohibits clients placing them even within a single function; ... > idea of having a bunch of classes at namespace scope and a bunch of helper ... How would grouping items in classes instead of namespaces change this? ...
    (comp.lang.cpp)