Chapter 5. Data Types

Array

Indexable list of scalar values.

Code

A piece of Perl code, e.g., a subroutine.

IO

Filehandle. Used in input and output operations.

Format

A format for producing reports.

Glob

All data types.

Hash

Associative array of scalar values.

Scalar

Strings, numbers, typeglobs, and references.

Perl variables can have a distinct value for each of these data types simultaneously.

perldata.

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.