Skip to Main Content
Perl Pocket Reference, 5th Edition
book

Perl Pocket Reference, 5th Edition

by Johan Vromans
July 2011
Intermediate to advanced content levelIntermediate to advanced
104 pages
2h 14m
English
O'Reilly Media, Inc.
Content preview from Perl Pocket Reference, 5th Edition

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.

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.
Start your free trial

You might also like

Perl Testing: A Developer's Notebook

Perl Testing: A Developer's Notebook

Ian Langworth, Chromatic
Perl Hacks

Perl Hacks

Chromatic, Damian Conway, Curtis Ovid Poe, Curtis (Ovid) Poe

Publisher Resources

ISBN: 9781449311186Errata Page