CGI Libraries
When you talk about CGI libraries, two possibilities exist: First, you can use libraries of code you develop and want to reuse in other projects. Second, you can avail yourself of publicly available libraries of programs, routines, and information.
Personal Libraries
If you follow the advice given earlier in this chapter in the "Planning Your Script" section about writing your code in a black box fashion, you'll soon discover that you're building a library of routines that you'll use over and over. After you determine how to parse out URL-encoded data, for instance, you don't need to do it again. And when you have a basic main() function written, it will probably serve for every CGI program you ever write. This is also true for ...
Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.