in reply to *.pm vs. *::Simple

CGI.pm is a big module. It does a lot. It is part of the standard distro. It is well tested. It is well documented. It will do more than you want. Does this make it

>>> bloated? <<<

Perhaps technically yes but in that case all modules/libraries are bloated. Does it only load the code that you use via a custom implementation of self loader - more or less yes. Will you see any practical speed benefit using anything else - probably not.

CGI.pm don't leave home without it.

cheers

PS some of the other offerings on CPAN are good. Some are not. Last time I bothered to mention this to one of the authors of a rather bad module I did not get a reply. In contrast Lincoln Stein, who mostly wrote CGI.pm, will likely reply within hours if you have a CGI.pm problem. Admittedly he is likely to explain that the module is fine and it is your code that sucks but that is because CGI.pm is so well tested ;-)

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: *.pm vs. *::Simple
by tstock (Curate) on Oct 22, 2001 at 23:25 UTC
    The bloat wouldn't bother me as much if it was relevant to the Common Gateway Interface, but no, it's mostly HTML related.

    The extra HTML functions should probably go into another module called something like HTML::OO, HTML::Funk or HTML::whatever. Or you can be really sneaky and put it in CGI::HTML.

    If not, then when will we see XML,WML related code bloat CGI.pm even more ?

    Tiago