http://qs321.pair.com?node_id=152312


in reply to Re: HTML Decoding
in thread HTML Decoding

Hi,

Sorry im also going blind as i did not see that, i do mean GLOENV. The reason why im doing this my own was is because this module will go into production software and i dont think i can use CGI in production software?

Replies are listed 'Best First'.
Re: Re: Re: HTML Decoding
by cjf (Parson) on Mar 17, 2002 at 13:15 UTC
    People all over the globe are using this piece of (imnsho) ugly code in production, and the module has proven to be very stable and capable.

    Let me stress the last part of Juerd's sentence. CGI.pm has been extensively tested, and is very solid. It also has a huge install base and chances are most people will have easy access to it. This is why I recommend it to new monks over creating their own buggy parsers. Those who would tell people who may be new to Perl that it's 'ugly code' are not acting responsibly. This is especially the case when they don't suggest a better alternative thereby leading some to believe that rolling their own isn't such a bad idea.

    As for your concerns with using CGI.pm in production software, are they licensing related? If so CGI.pm is licensed under the same terms as Perl, from the docs:

    This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

    I'm not a lawyer, but this would lead me to believe that there are no problems with using CGI.pm in (presumably closed source) production software. Check out the Artistic license for more information.

Re: Re: Re: HTML Decoding
by mirod (Canon) on Mar 17, 2002 at 14:15 UTC

    So you think you can produce parsing code that works better than a module that has taken a few years to write and that has been tested by several hundred thousand programers?

    Wouldn't this qualify as a bad case of over-hubris?

Re: Re: Re: HTML Decoding
by Juerd (Abbot) on Mar 17, 2002 at 12:20 UTC

    The reason why im doing this my own was is because this module will go into production software and i dont think i can use CGI in production software?

    I dislike CGI.pm, but I don't see why you couldn't use it in production software. People all over the globe are using this piece of (imnsho) ugly code in production, and the module has proven to be very stable and capable.

    U28geW91IGNhbiBhbGwgcm90MTMgY
    W5kIHBhY2soKS4gQnV0IGRvIHlvdS
    ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
    geW91IHNlZSBpdD8gIC0tIEp1ZXJk