Chapter 14. Pragmatic Modules
Pragmatic modules affect the compilation of your program. Pragmatic modules can be activated (imported) with use and deactivated with no. These are usually lexically scoped.
attributesEnables attributes.
autousemodule=>funcsDetermines that the module will not be loaded until one of the named functions is called.
baseclassesEstablishes an IS-A relationship with the named classes at compile time.
bigint[ options ]Uses the
Math::BigIntpackage to handle all integer calculations transparently.options can be
accuracy,precision,trace,version, andlib. One-letter abbreviations are allowed. Accuracy and precision require a numeric argument, and lib requires the name of a Perl module to handle the calculations.bignum[ options ]Uses the
Math::BigNumpackage to handle all numeric calculations transparently.See
biginton the facing page for options.bigratUse the
Math::BigNumandMath::BigRatpackages to handle all numeric calculations transparently.See
biginton the preceding page for options.blib[ dir ]Uses the MakeMaker’s uninstalled version of a package. dir defaults to the current directory. Used for testing of uninstalled packages.
bytesTreat character data as strict 8-bit bytes, as opposed to Unicode UTF-8.
charnames[ sets ]Enables character names to be expanded in strings using
\Nescapes.constantname=>valueDefines name to represent a constant value.
diagnostics[ verbosity ]Forces verbose warning diagnostics and suppression of duplicate warnings. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access