February 2015 Archives

Removing AUTOLOAD from CGI.pm

I'm about to release an update to CGI.pm that will strip out all of the AUTOLOAD and deferred compile optimization. I'm reasonably confident that this will have no impact other than adding a few tens of milliseconds to the startup time for any scripts using CGI.pm. Of note is that CGI::Pretty will now be deprecated, along with the -complile pragma and ->compile method. If you are using the -any pragma and have arbitrary tags (or typo's) in your code then your code *is* likely to break.

This optimization was added twenty years ago, it has little to no benefit now and makes the code dif…

About Lee J

user-pic I blog about Perl.