In fact I have in fact two questions in one...
1) I am in the process of writing a CGI script that would be run quite often,
and would need only a few of the many possibilities provided by CGI.pm
(mostly param and header)... And I heard that using CGI.pm
can quite slow down a script... Would use CGI /:cgi/ help, or should I
rewrite the few bits I need?
2) This script will have some very different behaviors
depending on the parameter the user feeds to it... Since it's CGI
(no mod_perl yet), would something like
if($do eq 'this') { require This } else { require That }
help? It should be quicker than to parse and reparse all the
(mostly useless) subs every time, shouldn't it?
Thanks for your comments.