Chapter 38. Special Hashes

%!

Requires the Errno module. Each element of %! has a nonzero value only if $! is set to that value.

%ENV

Contains the current environment. The key is the name of an environment variable; the value is its current setting.

%EXPORT_TAGS

Defines names for sets of symbols. Used by the Exporter module.

%INC

Contains the list of files that have been included with use, require, or do. The key is the filename as specified with the command; the value is the location of the file.

%SIG

Registers signal handlers for various signals. The key is the name of the signal (without the SIG prefix); the value a subroutine that is executed when the signal occurs.

__WARN__ and __DIE__ are pseudo-signals to attach handlers to Perl warnings and exceptions.

perlvar.

Get Perl Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.