Accessing CGI.pm from Your Program

The first step in using CGI.pm from within the program is importing the module. As long as the CGI.pm file is in one of the standard library directories with your installation, you can import it using the command

use CGI; 

CGI.pm has an object-oriented interface, which requires you to create a new CGI object, and then reference all the data structures and functions associated with CGI.pm using that object.

A discussion of the nature of object-oriented programming is beyond the scope of this book. Suffice it to say that when you use the object-oriented interface to CGI.pm, you keep the method names and variable ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition 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.