O'Reilly logo

Perl Pocket Reference, 5th Edition by Johan Vromans

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Special Hashes

%!

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

%+

Contains the named subpatterns with defined values from the last pattern successfully matched.

%-

Contains all named subpatterns from the last pattern successfully matched.

%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 pseudosignals to attach handlers to Perl warnings and exceptions.

perlvar.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required