Learn the basics of identifiers/naming conventions in the Perl language.


Names (or identifiers) are everywhere in Perl programs. They exist primarily for our benefit as programmers; we choose them for variables, functions, packages, classes, and even filehandles. All valid Perl names begin with a letter or an underscore and may optionally include any combination of letters, numbers, and underscores. When the utf8 pragma is in effect, we may use any UTF-8UTF-8 is a commonly used variable-length encoding of unicode characters. It uses only one byte to represent ASCII characters. word characters in identifiers.

These are valid Perl identifiers:

Get hands-on with 1200+ tech skills courses.