As an Amazon Associate I earn from qualifying purchases.

Perl: conditional use and scope
2010-03-01 Greg Bacon

Swapping libraries at compile time. Why a Perl use inside an if always loads the module, and how BEGIN blocks with require or eval do the job properly.