2.1 Operators and Expressions in Perl

An expression is a program phrase that is evaluated to obtain a value [Wat90]. There are many kinds of expressions composed in various ways. The ones we discuss in this chapter are given below.

  • Literals

  • Variables

  • Arithmetic Expressions

  • Conditional or Logical Expressions