© William "Bo" Rothwell of One Course Source, Inc. 2020
W. ". RothwellAdvanced Perl Programminghttps://doi.org/10.1007/978-1-4842-5863-7_5

5. Typeglobs

William “Bo” Rothwell1 
(1)
El Cajon, CA, USA
 

In order to understand globs, it’s best to first understand what a symbolic table is. This will also help you understand packages and namespaces which are discussed in Chapter 7.

Perl uses symbolic tables to keep track of identifiers. An identifier is a name that is used by Perl to name items like variables, filehandles, and subroutines.

The symbolic table is basically a hash with a key for each identifier. Symbolic tables are stored in namespaces, which are also often called packages. By default, the symbolic table will store all of the identifiers for the ...

Get Advanced Perl Programming: From Advanced to Expert 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.