Movatterモバイル変換


[0]ホーム

URL:


modules
(source,CPAN)
You are viewing the version of this documentation from Perl 5.8.3.View the latest version

CONTENTS

#Pragmatic Modules

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 ause, orno. Most of these are lexically scoped, so an inner BLOCK may countermand them by saying:

no integer;no strict 'refs';no warnings;

which lasts until the end of that BLOCK.

Some pragmas are lexically scoped--typically those that affect the$^H hints variable. Others affect the current package instead, likeuse vars anduse subs, which allow you to predeclare a variables or subroutines within a particularfile rather than just a block. Such declarations are effective for the entire file for which they were declared. You cannot rescind them withno vars orno subs.

The following pragmas are defined (and have their own documentation).

#Standard Modules

Standard, bundled modules are all expected to behave in a well-defined manner with respect to namespace pollution because they use the Exporter module. See their own documentation for details.

It's possible that not all modules listed below are installed on your system. For example, the GDBM_File module will not be installed if you don't have the gdbm library.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp