Other Operators and Functions

Yes, there are more operators and functions than we can fit here, from the scalar .. operator to the scalar , operator, from wantarray to goto(!), from caller to chr. See the perlop and perlfunc manpages.

Transliteration with tr///

The tr/// operator looks like a regular expression, but it’s really for transliterating one group of characters into another. It can also efficiently count selected characters. See the perlop manpage.

Here Documents

Here documents are a useful form of multiline string quoting. See the perldata manpage.

Get Learning Perl, Fourth 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.