Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hi fellow monks.

In the course of trying to figure out this issue (which I still think is a strange bug, not a problem with my admittedly lame code), I was perusing the CGI man page on CPAN, and found the following quote:

This module has grown large and monolithic. Furthermore it's doing many things, such as handling URLs, parsing CGI input, writing HTML, etc., that are also done in the LWP modules. It should be discarded in favor of the CGI::* modules, but somehow I continue to work on it.

I've found myself frustrated by the HTML code that CGI sometimes produces, as well as it's lack of XHTML compliance, and a few other issues that have cropped up over time. I have a huge project which depends on CGI.pm at this moment in time, although since I am committed to making the code it generates XHTML compliant, I will have to do something different soon. I was perusing the CGI::* and LWP modules, of which there are many, that seem to do overlapping things. One of the things I'm trying to control in this project is the number of required modules, since it's a generalized, open source project.

So my questions are: how many people still depend on CGI? How many have moved to using the other modules, and have you found that worthwhile? What are the best CGI::* modules to use that replace the functions of CGI? And which are the ones that can generate XHTML compliant code?

Thanks!

In reply to CGI versus CGI::* modules by michellem

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-23 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found