What is variable interpolation?
There are two ways to signify the beginning and end of a string: 1) single quotes, and 2) double quotes. The
double-quote version allows for a variable substitution scheme
known as variable interpolation. In this scheme the
double-quoted string may contain variable names which
begin with a dollar sign ($). When such a string is
assigned to a string variable or printed, the variable's value
is substituted into the string in place of the variable's
name. For example, the following code
$player1 = "Johnny";
$player2 = "Ronny";
print "$player1, it is your turn.";
prints Johnny, it is your turn.
The same effect can be achieved with the concatenation operator
(.) concatenating string literals and variable values together.
However, the latter version of the code can be quite tedious
and error prone.
(Learning Perl, p. 28)