jmb1911 has asked for the wisdom of the Perl Monks concerning the following question:

Where do I look to get more information on the internal working of table(), Tr(), & td(). It doesn't seem to work the way I expected & if I could see how it works it would be a big help. Is the source code out there anywhere? Any info would be appreciated.

Replies are listed 'Best First'.
Re: Question about tables
by davorg (Chancellor) on Apr 04, 2001 at 17:16 UTC
Re: Question about tables
by stefan k (Curate) on Apr 04, 2001 at 17:39 UTC
    Well,
    on my system there is a manpage:
    man CGI
    I dunno, whether that is correct on Non-SUSE-systems

    Regards Stefan K

Re: Question about tables
by jeroenes (Priest) on Apr 04, 2001 at 17:15 UTC
    Yes, it's all there, even on your system. Just look where CGI.pm resides. That file contains docs and source.

    Jeroen
    "We are not alone"(FZ)

      Thanks for your help, but I had already looked in CGI.pm (versions 2.56 & 2.752) & did not find anything like "method table(..." or anything that looked like it. Am I missing something?

        Most of CGI.pm's methods are built on-the-fly. There should be some boilerplate code that is used to build the methods. But, having looked at CGI source (which someone described as "like snorting helium"), I assert that it is often not a great route to understanding (and I'm a big proponent of reading the source code so I encourage you to plow forward but more as a way to learn some strange things about Perl rather than as a way of understanding how to use CGI.pm).

        I suggest you post the Perl code you are using and exactly what you don't like about the HTML it produces (probably including an example of exactly what you wanted).

                - tye (but my friends call me "Tye")
Re: Question about tables
by Hero Zzyzzx (Curate) on Apr 05, 2001 at 05:49 UTC

    The CGI.pm docs are available online here. CGI does really well with tables, and this documentation is pretty good.

    That said, I do find myself putting tables together manually sometimes, though.

    Good luck!