It seems I wasn't being quite so lucid with my original thought, so I'll post once more to say that it is not that I think LWP should replace CGI. I take full blame for making my post a little unclear on that point...

My point, in fact, is that most people will strive to make their code as compact and efficient as possible, so why is it such a crime to abhor bloating in modules? If I haven't made my arguments agains the bloat clear, I also haven't heard any decent reasons why it remains. So far the responses have gone along the lines of "it's not killing me, so who cares?" And there's nothing I revile more than apathy. I hope it's not the sound of M$ worshippers I'm hearing (who cares about the excesses, it's easy to use!). Now to see how many feathers that remark ruffles... ; )

Back to the topic at hand, however, I'll throw out this quote from a message brian d. foy posted on alt.perl about the "dangers" of CGI's namespace hogging:

(the function names) conflict with similar function names in other modules one is likely to use with CGI.pm, such as URI.

I won't pretend to be a perl guru, so my writing a new CGI module will have to wait a while. To show my ignorance, until I read that post I had been happily using CGI without a care in the world. I now find myself a little more wary about where and how I use the CGI module, and that's what prompted me to start this thread.

matt


In reply to Re: Re: CGI made me bloated by mattg
in thread CGI made me bloated by mattg

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.