O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

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

Perl Data Types

Before going on, let me point out the main data types used in Perl: literals, variables (including strings, arrays, and hashes), code references, filehandles, and here-documents. Each of these is given brief descriptions and examples in the following sections.

Literals

Literals are actual values—literally, what they are. There are numeric literals (for example, 1, 2, 3, 4, and so on) and string literals (abc, xyz, Fred, Sylvia, and so on). Some characters are not literals but are metacharacters or regular expression wild-cards. These characters match something other than themselves. The metacharacters are \ | ( ) [ ] { } ^ $ * + ?.

An important metacharacter to understand is the backslash (\), which turns a metacharacter into ...

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