Q&A

Q1: What is the performance difference between CGI.pm and cgi-lib.pl ?
A1: Under some situations, using cgi-lib.pl instead of CGI.pm can reduce compilation time for CGI programs by half. If performance is a big issue, you might consider using cgi-lib.pl. Most Perl programmers who are confronted with performance constraints tend to lean toward using mod_perl to execute their programs. This alternative is discussed in Hour 12, “Pros and Cons of Alternate Technologies.”
Q2: Is it okay to use code downloaded from CPAN on commercial sites?
A2: This varies depending on the license for the individual module you’re downloading. However, as a general rule, if it’s okay to use Perl for a task, it’s okay to use modules downloaded from CPAN for that ...

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.