in reply to Re^1: cgi.pm: complete list of method names? (easy)
in thread cgi.pm: complete list of method names?

Nice one tye, but you missed the methods created by AUTOLOAD.

So I suggest you look at the CGI.pm source as well, particularly the _compile sub and, by inference, the _make_tag_func sub. As far as I can see, the tags you can generate depend on the DTD you are using (ie HTML or XHTML). For when you use tags like this:

my $q = CGI->new(); my $start_tr = $q->start_Tr().$q->start_td();

etc...

cLive ;-)

Replies are listed 'Best First'.
Re^3: cgi.pm: complete list of method names? (easy)
by tye (Sage) on Jul 16, 2003 at 14:10 UTC

    I did look at the source. The idea to look at %EXPORT_TAGS came from the fact that AUTOLOAD looks at %EXPORT_TAGS to decide whether the method called should be created or not (unless you asked it to allow you to create just any method).

    There are some methods that aren't created via AUTOLOAD but those are in %EXPORT_TAGS already.

    Yes, the special handling of "start" and "end" prefixes isn't covered by this simple trick. There are probably a few other edge cases as well.

                    - tye