Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

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


I am a newbie to CGI. I was tasked with creating a dynamic website for displaying ever changing text in a table. Small, simple, and yet somewhat of a challenge for someone like me who has never done any CGI.

So I grabbed CGI.pm (to use perl, or to not use perl, was never a question :) and started writing samples and getting the feel for the different approaches to both CGI styles and to the differences between the OO methods and the Function Oriented methods (as well as discovering why not to mix the two). I was doing quite well with the simple stuff, however some of the gotchas were plaguing me. So I stopped off at a bookstore and looked for Perl/CGI books. I picked up 2, this one and "Writing CGI Applications with Perl". To be honest I never really opened the second book until after the project.

The biggest attraction to this book was the author, I had previously read "Network Programming with Perl" and loved the way he writes, this book was no different. I gives a great deal of detail to nearly every aspect of CGI.pm and follows it up with practical code samples that are stepped through line by line. Advanced users of CGI.pm might not find the book as useful, however even the pros need a reference sometimes and this book is a wonderful reference.

It covers everything from getting and installing CGI.pm to using it with cookies and even JavaScript. The book was structured very well, with each chapter flowing into the next, and the samples either getting rewiritten or modified using the next topic (a great example of TIMTOWTDI). There are great sections on syntax for both OO and FO users, and the indexing and TOC are very well laid out for using this book as a great reference.

Wiley is not usually my first choice in publishers of Tech books, however they do supply very good web resources for this one here.

All in all a wonderful intro to the CGI.pm module and to CGI itself.

In reply to Official Guide to programming with CGI.pm by Rex(Wrecks)

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 exploiting the Monastery: (7)
As of 2024-04-23 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found