Data Types

See the section Variables for the role of the sigils.

Type

Sigil

Description

Array

@

Indexable list of scalar values.

Code

&

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

Format

 

A format for producing reports.

Glob

*

All data types.

Hash

%

Associative array of scalar values.

IO

 

Filehandle. Used in input and output operations.

Scalar

$

Strings, numbers, typeglobs, and references.

perldata.

Get Perl Pocket Reference, 5th 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.