![]() It's possible that not all modules listed below are installed on your system. Standard, bundled modules are all expected to behave in a well-defined manner with respect to namespace pollution because they use the Exporter module. Warnings::register - Warnings import function Vmsish - Control VMS-specific language features Version - Perl extension for Version Objects Utf8 - Enable/disable UTF-8 (or UTF-EBCDIC) in source code Threads::shared - Perl extension for sharing data structures between threads Stable - Experimental features made easy, once we know they're stable Parent - Establish an ISA relationship with base classes at compile time Overloading - Lexically control overloading Overload - Package for overloading Perl operations Ops - Restrict unsafe operations when compiling Open - Set default PerlIO layers for input and output Locale - Use or avoid POSIX locales for built-in operations Integer - Use integer arithmetic instead of floating point If - use a Perl module if a condition holds The following pragmas are defined (and have their own documentation).Īttributes - Get/set subroutine or variable attributesĪutodie - Replace functions with ones that succeed or die with lexical scopeĪutodie::exception - Exceptions from autodying functions.Īutodie::exception::system - Exceptions from autodying system().Īutodie::hints - Provide hints about user subroutines to autodieĪutodie::skip - Skip a package when throwing autodie exceptionsĪutouse - Postpone load of modules until a function is usedīase - Establish an ISA relationship with base classes at compile timeīigfloat - Transparent big floating point number support for Perlīigint - Transparent big integer support for Perlīignum - Transparent big number support for Perlīigrat - Transparent big rational number support for Perlīlib - Use MakeMaker's uninstalled version of a packageīuiltin - Import built-in utility functionsīytes - Expose the individual bytes of charactersĬharnames - Access to Unicode character names and named character sequences also define character namesĭeprecate - Perl pragma for deprecating the inclusion of a module in coreĭiagnostics - Produce verbose warning diagnosticsĮncoding - Allows you to write your script in non-ASCII and non-UTF-8Įncoding::warnings - Warn on implicit encoding conversionsĮxperimental - Experimental features made easyįiletest - Control the filetest permission operators You cannot rescind them with no vars or no subs. ![]() Such declarations are effective for the entire file for which they were declared. Others affect the current package instead, like use vars and use subs, which allow you to predeclare a variables or subroutines within a particular file rather than just a block. Some pragmas are lexically scoped-typically those that affect the $^H hints variable. Most of these are lexically scoped, so an inner BLOCK may countermand them by saying: no integer They work somewhat like compiler directives (pragmata) in that they tend to affect the compilation of your program, and thus will usually work well only when used within a use, or no.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |