Scalars and strings

This part is the scalar, the single value behind a $ sigil: numbers and the arithmetic that keeps them honest, strings and the functions that cut and clean them, and the double-quoted interpolation and here-documents that make Perl read like a shell script when you want it to.

2.1 Scalars and sigils declare a scalar with my, follow the naming rules, and tell a value apart from undef with defined Open 2.2 Numbers integer and floating point literals, arithmetic, rounding with int and sprintf, and numeric comparison Open 2.3 Strings single and double quotes, concatenation and repetition, substr, chomp and uc Open 2.4 Interpolation and quoting scalars and arrays inside double quotes, braces that end a name, and multi-line here-documents Open

Lessons