Summary

In this hour, you learned that Perl's most basic type of data is a scalar. Scalars can be almost any kind of data and are stored in scalar variables. Numeric literals can be represented in many different formats, including integers, and floating-point numbers. String literals are represented by quoted strings, with either double or single quotation marks surrounding them. Also, Perl provides operators for performing string manipulation and basic arithmetic.

Get Sams Teach Yourself Perl in 24 Hours 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.