Invoking CGI.pm

After the configuration section of the script comes the following line:

use CGI qw(:standard);

This is where you work the CGI.pm magic. In effect, what you are doing with this line is adding a whole bunch of prewritten Perl code to your script. That code arrives in the form of some new functions that your script now has access to for doing various CGI-related things. As I mentioned earlier, I’m not going to explain that process in detail here. In a few minutes, though, you’ll see how easy this makes it to process the submitted form elements received by the script.

Get Perl for Web Site Management 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.